Convert this Money button game from PHP to React + Typescript,

You can ask me clarifying questions beforehand.

index.php

<?php
    date_default_timezone_set("Asia/Singapore");
    session_start();

    if(!isset($_SESSION["chance"])){
        $_SESSION["chance"] = 10;
        $_SESSION["randomValue"] = 0;
        $_SESSION["money"] = 500;
        $_SESSION["gameLogs"] = array();
    }

    // session_destroy();
?>
<body>
    <div id="container">
        <header>
            <form action="process.php" method="post">
                <input type="hidden" name="button" value="resetGame">
                <input type="submit" value="Reset Game">
            </form>            
            <h1>Your money: <?=$_SESSION["money"]?></h1>         
            <h2>Chances left: <?=$_SESSION["chance"]?></h2>
        </header>
        <section id="bets">
            <form action="process.php" method="post">
                <h1>Low Risk</h1>
                <input type="hidden" name="button" value="lowRisk">
                <input type="submit" value="Bet">
                <p>by -25 up to 100</p>
            </form>
            <form action="process.php" method="post">
                <h1>Moderate Risk</h1>
                <input type="hidden" name="button" value="moderateRisk">
                <input type="submit" value="Bet">
                <p>by -100 up to 1000</p>
            </form>
            <form action="process.php" method="post">
                <h1>High Risk</h1>
                <input type="hidden" name="button" value="highRisk">
                <input type="submit" value="Bet">
                <p>by -500 up to 2500</p>
            </form>
            <form action="process.php" method="post">
                <h1>Severe Risk</h1>
                <input type="hidden" name="button" value="severeRisk">
                <input type="submit" value="Bet">
                <p>by -3000 up to 5000</p>
            </form>
        </section>
        <section id="gameHost">
            <h3>Game Host:</h3>
            <div id="gameLogs">
                <p>[ <?=date('m/d/Y h:iA')?> ] Welcome to Money Button Game, risk taker! All you need to do is push buttons to
                try your luck. You have free 10 chances with initial money 500. Choose wisely and good luck!"</p>
<?php   if(!empty($_SESSION["gameLogs"])){
            foreach ($_SESSION["gameLogs"] as $logs) {
?>              <p class="<?=($logs["randomValue"] > 0)? 'won':'lost'?>">
                [ <?=$logs["date"]?> ] You pushed "<?=$logs["risk"]?>". Value is <?=$logs["randomValue"]?>. Your current money now is <?=$logs["money"]?> with <?=$logs["chance"]?> chance(s) left.
                </p>
<?php       }
        }
        if ($_SESSION["chance"] < 1) {
?>              <h4>Game Over!</h4>
<?php        }
?>                
            </div>
        </section>
    </div>
</body>
process.php

<?php
    session_start();

    if(isset($_SESSION["chance"]) && $_SESSION["chance"] > 0){

        switch ($_POST["button"]) {

            case "lowRisk":
                $_SESSION["randomValue"] = rand(-25, 100);
                $_SESSION["money"] += $_SESSION["randomValue"];
                $_SESSION["chance"]--;
                array_push($_SESSION["gameLogs"], array(
                    "date" => date('m/d/Y h:iA'),
                    "risk" => "Low Risk",
                    "randomValue" => $_SESSION["randomValue"],
                    "money" => $_SESSION["money"],
                    "chance" => $_SESSION["chance"],
                ));
                break;
    
            case "moderateRisk":
                $_SESSION["randomValue"] = rand(-100, 1000);
                $_SESSION["money"] += $_SESSION["randomValue"];
                $_SESSION["chance"] --;
                array_push($_SESSION["gameLogs"], array(
                    "date" => date('m/d/Y h:iA'),
                    "risk" => "Moderate Risk",
                    "randomValue" => $_SESSION["randomValue"],
                    "money" => $_SESSION["money"],
                    "chance" => $_SESSION["chance"],
                ));          
                break;
                
            case "highRisk":
                $_SESSION["randomValue"] = rand(-500, 2500);
                $_SESSION["money"] += $_SESSION["randomValue"];
                $_SESSION["chance"] --;
                array_push($_SESSION["gameLogs"], array(
                    "date" => date('m/d/Y h:iA'),
                    "risk" => "High Risk",
                    "randomValue" => $_SESSION["randomValue"],
                    "money" => $_SESSION["money"],
                    "chance" => $_SESSION["chance"],
                ));          
                break;
    
            case "severeRisk":
                $_SESSION["randomValue"] = rand(-3000, 5000);
                $_SESSION["money"] += $_SESSION["randomValue"];
                $_SESSION["chance"] --;
                array_push($_SESSION["gameLogs"], array(
                    "date" => date('m/d/Y h:iA'),
                    "risk" => "Severe Risk",
                    "randomValue" => $_SESSION["randomValue"],
                    "money" => $_SESSION["money"],
                    "chance" => $_SESSION["chance"],
                ));          
                break;                         
            
            default:
                # code...
                break;
        }        
    }

    if(isset($_POST["button"]) && $_POST["button"] == "resetGame"){
        $_SESSION["chance"] = 10;
        $_SESSION["randomValue"] = 0;
        $_SESSION["money"] = 500;
        $_SESSION["gameLogs"] = array(); 
    }

    header("Location: index.php");
    exit();
?>