DEV Community

Discussion on: useState Hook In React

Collapse
 
suyash56 profile image
Suyash Balshetwar

I want to ask a question that is if we call setCount(count) then component will render or not ?

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.