Question: what are stateless components in react?
Answer: A functional(a.k.a. stateless) component is just a plain javascript function which takes props as an argument and returns a react element. ... It has a state, lifecycle hooks and it is a javascript class which means that React creates instances of it.