DEV Community

Discussion on: Rules of React's useEffect

Collapse
 
salvimateus profile image
Mateus Salvi

Nice article! Thanks.
One question: in the last topic, you talked about not using empty dependency array as a guarantee to execute once. But then what would be the correct solution to guarantee 1 execution in React 18?