React is a JavaScript library for creating user interfaces. It has become one of the most popular libraries due to its simplicity and performance. While using React, it is very important to know about the state of React component and how to change it.

What does setState() do?

Annie Wang

Co-op at P&C team at Hootsuite. A software engineer who loves critical thinking and likes to seek all the joyful and beautiful things in life. ╮(✧ఠ 。ఠ)╭

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store