What is the reason for isTrue not changing to true? As you can see I am setting it inside the useEffect. What exactly is happening here?
import React, {useState, useEffect} from "react";
import "./style.css";
export default function App() {
  const [isTrue, setIsTrue] = useState(false)
  useEffect(() => {
    setIsTrue(true)
    console.log(isTrue) //still gives me false
  }, [])
  return (
    <div>
      <h1>Hello StackBlitz!</h1>
      <p>Start editing to see some magic happen :)</p>
    </div>
  );
} 
     
    