DEV Community

Cover image for What are React Class Components?
Gourav Singh Rawat
Gourav Singh Rawat

Posted on

What are React Class Components?

They are nothing use React Function Components instead!

In older React, Class components were the only way to track state and lifecycle on a React component.

Thank you!

Top comments (2)

Collapse
 
zwacky profile image
Simon Wicki

Haaaa you got me. And yes, I approve this post 😋

Collapse
 
seek4samurai profile image
Gourav Singh Rawat

lol thanks <3