useEffect(() => { // code run when the component is mounted // Make sure this is empty to ensure hook will only run once }, [])