useDidUpdate
Callable
Parameters
callback: EffectCallback
The callback to run after the first render.
optionaldeps: DependencyList
The dependencies to watch for changes.
Returns void
The callback to run after the first render.
The dependencies to watch for changes.
A hook that runs a callback after the first render.