Konvertieren Sie die Komponente in Gebrauchswire.
useEffect(() => {
// code run when the component is mounted
// Make sure this is empty to ensure hook will only run once
}, [])
Vast Vulture