6 use cases of the useEffect ReactJS hook
How we can make use of useEffect to validate input data, filter, trigger animations, and more!
Sep 18, 202110 min read548

Search for a command to run...
Series
How we can make use of useEffect to validate input data, filter, trigger animations, and more!

useReducer is a Hook that allows us to manage multiple states more efficiently, create complex state logic, and manage states that depend on previous states. The following two use cases are good examples of how we can make use of this hook. useReduce...

useState is a Hook that needs to be called inside a function component to add some local state to it. React will preserve this state between component re-renders. There are many use cases for the useState hook, but in this article, I will focus on th...
