Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
merb
22 days ago
|
parent
|
context
|
favorite
| on:
React's useState should require a dependency array
Well what you did will often not stay as is and at least evolve into the antipattern (update the input from outside) the only alternative would be to create a new key to do that. And trust me there is a lot of useeffect Code which is not a good idea
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: