Skip to main content

Command Palette

Search for a command to run...

What are the differences between functional and class components?

Updated
1 min read
What are the differences between functional and
class components?

Functional components are JavaScript functions. Before the introduction of hooks, state and lifecycle methods were available to class components only. Now functional components can maintain state with useState hook.

More from this blog

R

Raja Muhammad Asher - Senior Software Engineer - Full Stack Developer

157 posts

Full Stack Developer with a passion for building web applications. PHP, Node.js, Laravel, ExpressJS, MySQL, MongoDB. Love collaborating & making a difference

What are the differences between functional and class components?