Преобразовать компонент DID MOND в использование

useEffect(() => {
  // code run when the component is mounted 

  // Make sure this is empty to ensure hook will only run once
}, [])
Vast Vulture