Click here to Skip to main content
15,884,472 members
Articles / Web Development / React

Why Not To Modify React State Directly

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
2 Jun 2018CPOL2 min read 10.9K  
Everybody says don’t do it. Never mutate state directly, always call setState. But why, though?

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
Dave is a Software Engineer in the Boston area and writes about AngularJS and other JavaScript things over at daveceddia.com

Comments and Discussions