useEffect(() => { fetch(`https://api?email=${loggedInUser.email}`) .then(res => res.json()) .then(data => *state*(data)) }, [])