Click here to Skip to main content
15,031,842 members
Articles / Web Development / React

Tagged as

Stats

7.3K views

Why Not To Modify React State Directly

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

Views

License

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

Share

About the Author

Dave Ceddia
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