One thing that makes the stateless functional components different from their stateful counterparts is the fact that this does not represent the component during their execution.
For this reason, it is not possible to use functions such as setState, or life cycle methods that are associated with the component instance.