---
title: "Comment by Akshay on \"React : Class vs Function Components\" | Hashnode"
description: "I guess there is typo in code. In Class Component onClick handler should point to function this.increment"
url: "https://hashnode.com/posts/react-class-vs-function-components/62015068295d2760067771be/comment/6204d3d69e350308247fcbd8"
---

[Discussion](https://hashnode.com/posts/react-class-vs-function-components/62015068295d2760067771be)

Comment [React : Class vs Function Components](https://hashnode.com/posts/react-class-vs-function-components/62015068295d2760067771be)

[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
