const [test, setTest] = useState(""); useEffect(() => { setTest("NOT EMPTY"); if(test) { console.log(test) } else {