Dynamically Update the State of a Child Element with useEffect - Coding for Entrepreneurs