JSFiddle - React, Tailwind, and code Playground

by MythOfEchelon

HTML

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

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        
        <script>
            document.onreadystatechange = function(){
                if (document.readyState === "complete"){
                    /* Page is fully loaded and ready for interaction */
                    
                    displayText();
                }
            }
            
            function displayText(){
                var temp = 72;
                if (temp > 65) {
                    document.getElementById("targetDiv").innerHTML = "Picnic Time!";
                }
            }
        </script>
    </head>
    
    <body>
        <h1>Using the if statement</h1>
        <div id="targetDiv">
            
        </div>
    </body>
</html>