Class Components: Class components are a little more difficult to understand than functional components.
Our app has five components, as you can see above. The data that each component represents has been italicised.
Components are frequently described as "simply functions," but we believe they must be more to be helpful. Components in React represent any composable functionality, such as rendering, lifecycle, and state.