as of recent React versions, function components can no longer be considered 'stateless'. Please use FunctionComponent instead.
FunctionComponent
React Hooks
Устаревший
as of recent React versions, function components can no longer be considered 'stateless'. Please use
FunctionComponentinstead.See
React Hooks