Using useEffect hook
The Effect Hook lets you perform side effects in function components.
What does useEffect do?
By using this Hook, you tell React that your component needs to do something after render. React will remember the function you passed (we’ll refer to it as...
moemensaadeh.hashnode.dev4 min read