as of recent React versions, function components can no longer be considered 'stateless'. Please use FunctionComponent instead.
FunctionComponent
React Hooks
Deprecated
as of recent React versions, function components can no longer be considered 'stateless'. Please use
FunctionComponentinstead.See
React Hooks