Stateful and Stateless Components
In React, a stateful component is a component that holds some state. Stateless components, by contrast, have no state. Note that both types of components can use props.
In the example, there are two React components. The
Store component is stateful and the
Week component is stateless.
class Store extends…