Summary
This chapter has gone over most of the information about state required for us to move forward. By now, we should be able to understand how state works both in a class component and a functional component.
After learning about state and what exactly state is, we learned about some lifecycle functions and how exactly they work. Learning about this is really important because we've now understood that a component lives through different stages and at different points, we're able to interfere with some JavaScript code.
This whole adventure gave us an idea, the real age app. We're now able to create an app with dynamic numbers that change over time. We've learned how to implement everything we've learned so far about state and create an awesome idea displaying our age.
Because class components look a bit like there's too much code to write, we started learning about hooks. After a careful analysis of how exactly they're different,...