Run useEffect Function with Change in State or Props
In this lesson, you will discover how the “useEffect” hook runs an inline function when a prop or state mentioned in the dependencies array changes.
We'll cover the following...
Running effects after change in props or state
Dependencies array can be used to manage when side effects are run.
Below is a slightly advanced example of useEffect
hook. Assume the application allows users to set a nickname using an ...