3 ms·
React supports stateless components, it's literally just a plain JavaScript function. From the React docs: > In an ideal world, most of your components would
by vectorpush 10y ago
React supports stateless components, it's literally just a plain JavaScript function.
From the React docs:
> In an ideal world, most of your components would be stateless functions... This is the recommended pattern, when possible.