DEV Community

Discussion on: React hooks & the closure hell 2

Collapse
 
anpos231 profile image
anpos231

So are you saying that we can function to setValue? And it will call it with the current state? Just like the old this.setState()?

How could I miss it!