Side Effects
Working with useEffectThis video is part of the LinkedIn Learning course React.js Essential Training.
The useEffect
method is used to perform side effects in a component. Side effects, including data fetching, setting up a subscription, or manually changing the DOM, can be invoked any time a component is rendered.