DEV Community

Discussion on: React - Stateless vs Stateful Components

Collapse
 
andywer profile image
Andy Wermke

Thanks for sharing. Unfortunately it's not completely true anymore.

Since React hooks are now a thing, functional components can be stateful and have a lifecycle just as well. Furthermore class-based components can also be stateless (if all they have is a render method, but of course it would only be reasonable to turn them into a functional component then).

The post is rather describing class-based components vs functional components.

There is nothing wrong about describing that, but the concept class=stateful and function=stateless is now a thing of the past ;)