JSFiddle - React, Tailwind, and code Playground

JavaScript

$(document).ready(function () {
    $.cookie('cookieName', 'This is cookie value');
});