Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
davely
on March 11, 2023
|
parent
|
context
|
favorite
| on:
Common Beginner Mistakes with React
Check out useReducer and all your problems go away! (It has no relation to Redux, many people think this but it’s a native React hook that makes updating keys within an object much easier)
petilon
on March 11, 2023
[–]
Just read the docs for useReducer. It says you should not change the original object. You have to make a copy.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: