JSFiddle - React, Tailwind, and code Playground

by Saumil Soni

HTML

<form id="tableVar">Variable 1:
    <input type="text" id="var1">
    <br>Variable 2:
    <input type="text" id="var2">
    <br>
    <button onclick="myFunction(event)">Click me</button>
    <!-- type is button to not refresh -->
</form>
<script>
    console.log("iniating app ...");

    function myFunction(event) {
        console.log('yeah');
        event.preventDefault();
    }
</script>