I believe I understand how the useEffect hook works, but I am having difficulties re rendering the component to update a map function when the props sent from a parent compo