Skip to main content

What are the differences between functional and class components?

Published 1 min readMarkdown
Part of seriesReact
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.

About the author

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

No comments yet. Be the first to comment.

More from this blog