Using the following useEffect hook, the updated state is not rendered unless the user touches the screen or even if we place a console.log under the ef
useEffect
console.log