
In React, the state is immutable. In simple terms it means that you should not modify it directly. Instead a new object should be created to set the state using setState. Here are two examples. Modifying the state directly - Not Acceptable onChange(e...
Programmer
I explore the world of technology and share my findings here. Find me at https://twitter.com/il3ven
Markdown supported · ⌘↵ to post
No responses yet.