Usando reaccionar,
Hay un botón y un valor "x" dentro de la etiqueta ap.
¿Por qué el valor final de x es 2?
En el bucle for, el valor x final debe ser 100.
export default function Sectiom() { const [x, setX] = useState(1) const handleClick = () => { for (var i = 0; i < 99; i++) { setX(x + 1); } } return ( <div> <p>{x}</p> <button onClick={handleClick}> Plus </button> </div> } }