useEffect
Functional components do not have lifecycle methods.
Instead they have a useEffect hook.
This can be used to perform side effects such as data fetching, manually changing the DOM.
Accepts a function that contains imperative, possibly effectful code.
useEffect(didUpdate);
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext