Stateful Components
Learn how to manage state using React with the help of an example.
We'll cover the following...
In the previous lesson, we saw how to build a stateless React component. By stateless, we mean that the component only receives input from the outside and it doesn’t need to calculate or manage any internal information to be able to render itself to the DOM.
While it’s great to have stateless components, sometimes, we have to manage some kind of state and React allows us to do that. So, let’s learn how with an example.
A simple React application
Let’s build a React application that displays a list of projects that have been ...