Chapter 2
Creating Components
Section 7
Managing the Internal State
Let us now understand that Components have the ability to store data that can change over time by learning to manage the internal state. Next, let us understand the setState() method and important things to be considered while when deciding which component should be stateful. Next, we learn to move the Logic of getting data Inside of the Catalog Component and try this by adding state management to the Cart Component.