DEV Community

Discussion on: useState Hook In React

Collapse
 
musk101 profile image
muskan agarwal

setCount will take a function not a value to update the initial state to the next.
Try implementing it practically you will understand better.