JSFiddle - React, Tailwind, and code Playground

by Eric DeCoff

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/redmond/jquery-ui.css">
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
<input id="datepicker" />

JavaScript

jsonData = {
    "lowestRate": {
        "currencyCode": "USD",
        "amount": 219
    },
    "hotels": [
        {
            "hotelCode": "ATLAS",
            "currencyCode": "USD",
            "rates": [
                {
                    "rateCode": "IGCOR",
                    "isFreeNight": false,
                    "windows": [
                        {
                            "roomCode": "CSTN",
                            "startDate": "2019-05-20T00:00:00Z",
                            "checkInAmount": 129,
                            "totalAmount": 129,
                            "rooms": 9
                        },
                        {
                            "roomCode": "KEXN",
                            "startDate": "2019-05-20T00:00:00Z",
                            "checkInAmount": 169,
                            "totalAmount": 169,
                            "rooms": 9
                        },
                        {
                            "roomCode": "KWBN",
                            "startDate": "2019-05-20T00:00:00Z",
                            "checkInAmount": 129,
                            "totalAmount": 129,
                            "rooms": 1
                        },
                        {
                            "roomCode": "TDBN",
                            "startDate": "2019-05-20T00:00:00Z",
                            "checkInAmount": 129,
                            "totalAmount": 129,
                            "rooms": 5
                        },
                        {
                            "roomCode": "TEXN",
                            "startDate": "2019-05-20T00:00:00Z",
                            "checkInAmount": 169,
                            "totalAmount": 169,
                            "rooms": 9
                        },
                        {
                            "roomCode": "CSTN",
                            "startDate":...