JSFiddle - React, Tailwind, and code Playground

by sebababi

HTML

<link rel="stylesheet" href="https://dl.dropboxusercontent.com/s/y4enc3buyzz2m3a/fullcalendar.css">
<script src="https://dl.dropboxusercontent.com/s/93dskqt37q1caxr/fullcalendar.min.js"></script>
<div id='calendar'></div>

JavaScript

var $calendar = $('#calendar').fullCalendar({
    header: {
        left: 'prev,next today',
        center: 'title',
        right: 'month,basicWeek,basicDay'
    },
    
    defaultView: 'month',

    dayRender: function (date, cell) {
        var today = new Date();
        if (date.getDate() === today.getDate()) {
            cell.css("background-color", "red");
        }
    }
});