Understanding the State in React
Let us start with the WHY.
Why do we need state?
When a component is mounted first, it displays data on the screen. And when an interaction causes a change in data, we expect the component should re-render with the updated value.
Consider the followi...
dssitachi.hashnode.dev5 min read