This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Why you must return a new reference in functional updates: mutating prevState directly breaks React's immutability contract.
You've completed the free preview. Subscribe to unlock every lesson in every course.