Stateless Functional Components in React
A stateless component is just presentation of the state. It only can render props and it should only do that. A good example is a header component: let’s say we have a header which needs to be styled and displayed especially so we create a header stateless component which would look like this.