Usar el formato ES6 ELECTECT
useEffect(() => {
console.log(`Component mounted`)
}, [])
Witty Weevil
useEffect(() => {
console.log(`Component mounted`)
}, [])