DEV Community

Discussion on: Set a callback to setState(useState) in React funtional Component

Collapse
 
chandra profile image
Chandra Prakash Tiwari

Actually, this is an alternate solution for calling something after setting the state in a functional component. You can use useEffect() more than once.