---
title: "Discussion on \"What are the differences between functional and\nclass components?\" | Hashnode"
description: "Discussion on \"What are the differences between functional and\nclass components?\". Functional components are JavaScript functions. Before the introduction of hooks, state and lifecycle methods were available to class components only."
url: "https://hashnode.com/posts/what-are-the-differences-between-functional-and-class-components/637b8166e027b337755677ed"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What are the differences between functional and class components?](https://rajamuhammadasher.com/what-are-the-differences-between-functional-and-class-components?utm_source=hashnode&utm_medium=feed)

Functional components are JavaScript functions. Before the introduction of hooks, state and lifecycle methods were available to class components only.

Aug 24, 2022 · 1 min read · rajamuhammadasher.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Raja Muhammad Asher](https://hashnode.com/@rajamuhammadasher)

@rajamuhammadasher · USA

  
[View profile](https://hashnode.com/@rajamuhammadasher)

Full Stack Developer

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
