JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="chkMap" /><br />
<input type="text" id="textbox1" />

JavaScript

$(document).ready(function () {              
         $('#chkMap').change(function () {
             if ($(this).is(":checked")) {                                               
             }
             $('#textbox1').val($(this).is(':checked'));
         });             
 });