JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="https://code.htmlhifive.com/h5.css">
<script src="https://code.htmlhifive.com/ejs-h5mod.js"></script>
<script src="https://hifive.github.io/hifive-res/fw/current/h5.dev.js"></script>
<script src="https://hifive.github.io/hifive-ui-library/hifive-ui-library/WebContent/components/calendar/src/CalendarController.js"></script>
<link rel="stylesheet" href="https://hifive.github.io/hifive-ui-library/hifive-ui-library/WebContent/components/calendar/src/CalendarController.css">
<div id="container"></div>
<p>
<input type="radio" class="select" name="select" value="single" /> 一日ごとの選択 <br />
<input type="radio" class="select" name="select" value="continue" /> 連続選択 <br />
<input type="radio" class="select" name="select" value="multi" /> 複数日付 <br />
</p>

JavaScript

$(function(){
	var mainController = {
		__name : 'h5.ui.container.MainController',
		calendarController: h5.ui.components.Calendar,
		__meta : {
			calendarController: {
				rootElement: '#container'
			},
		},

		__init: function(){
    	this.$find(".select:first").attr("checked", true);
		},
    
    '.select click': function(context, $el) {
    	this.calendarController.setSelectMode($el.val());
    },
};

	h5.core.controller('body', mainController);

});