JSFiddle - React, Tailwind, and code Playground

by MythOfEchelon

HTML

<!-- This is just my HTML5 template. Make sure you set this up correctly for your personal needs. -->

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        
        <style>
            * {
                margin: 0;
                padding: 0;
            }
            
            html {
                font: 16px "Segoe UI", "Segoe WPC", Helvetica, Arial, "Arial Unicode MS", Sans-Serif;
            }
            
            div {
                float: left;
            }
            
            
        </style>
        
        <script>
            document.onreadystatechange = function(){
                if (document.readyState === "complete"){
                    /* 
                        Page is fully loaded and ready for interaction.
                        Using this method circumvents issues caused by attempted interaction with uninitialized objects.
                    */
                    
                    start_Calc();
                }
            }
            
            function start_Calc(){
                var num_1 = parseInt(window.prompt("Please enter the first number:"));
                var action = window.prompt("Please enter the math action you want to do on these numbers (+, -, *, /):");
                var num_2 = parseInt(window.prompt("Please enter the second number:"));
                
                var total;
                if (action == "+"){
                    total = num_1 + num_2;
                } else if (action == "-"){
                    total = num_1 - num_2;
                } else if (action == "*"){
                    total = num_1 * num_2;
                } else if (action == "/"){
                    total = num_1 / num_2;
                } else {
                    window.alert("'" + total + "' is not a supported action.");
                    return false;
                }
                window.alert(num_1 +...