Y
Hacker News
new
|
ask
|
show
|
jobs
by
recursive
628 days ago
No. `useState` returns the value of the state, and a setter. It's not about side effects, it's about the value. The returned setter triggers a re-render. That's not nothing.