I\'m trying to implement a React smart component using functions as shown here
https://hackernoon.com/react-stateless-functional-components-nine-wins-you-might-have-overlook
If you want to use state in the functional component, then there is one package called recompose, which provides a set of helper functions for stateless function components. There is withState() helper that enables state.