---
title: "Discussion on \"React : Class vs Function Components\" | Hashnode"
description: "Discussion on \"React : Class vs Function Components\". React.Component class comes with a lot of predefined baggage, which are not necessary all the time.\n\nWhereas, by using Functional Components you can custom"
url: "https://hashnode.com/posts/react-class-vs-function-components/62015068295d2760067771be"
---

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

Discussion

# [React : Class vs Function Components](https://ahtrahdis7.hashnode.dev/react-class-vs-function-components?utm_source=hashnode&utm_medium=feed)

React.Component class comes with a lot of predefined baggage, which are not necessary all the time. Whereas, by using Functional Components you can custom

Feb 7, 2022 · 2 min read · ahtrahdis7.hashnode.dev  
Updated Feb 10, 2022  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#frontend](https://hashnode.com/tag/frontend)
-   [#frontend-frameworks](https://hashnode.com/tag/frontend-frameworks)

## Written by

[Sidhartha Mallick](https://hashnode.com/@ahtrahdis7)

@ahtrahdis7 · India

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

building https://investorsync.in/

while (true) { build; measure; continue; }

## Responses 3

Markdown supported · ⌘↵ to post

[Akshay](https://hashnode.com/@akkilog)

[Feb 10, 2022](https://hashnode.com/posts/react-class-vs-function-components/62015068295d2760067771be/comment/6204d3d69e350308247fcbd8)

I guess there is typo in code. In Class Component onClick handler should point to function this.increment

[Shivani](https://hashnode.com/@nteasocial)

[Feb 7, 2022](https://hashnode.com/posts/react-class-vs-function-components/62015068295d2760067771be/comment/62016cce3a8a6e5fe119a3d0)

nice post

[Sidhartha Mallick](https://hashnode.com/@ahtrahdis7)

[Feb 7, 2022](https://hashnode.com/posts/react-class-vs-function-components/62015068295d2760067771be/comment/62016cce3a8a6e5fe119a3d0#reply-620171f43a8a6e5fe119a44e)

Thank you 😊

[Saleh Mubashar](https://hashnode.com/@Saleh28)

[Feb 7, 2022](https://hashnode.com/posts/react-class-vs-function-components/62015068295d2760067771be/comment/6201671e4efba97010a977a7)

nice post I also write about React!, I would really appreciate if you check my posts out too! thanks

[Sidhartha Mallick](https://hashnode.com/@ahtrahdis7)

[Feb 7, 2022](https://hashnode.com/posts/react-class-vs-function-components/62015068295d2760067771be/comment/6201671e4efba97010a977a7#reply-620172003a8a6e5fe119a453)

Thank you.
