---
title: "Discussion on \"Write a Simple Counter in ReactJS.\" | Hashnode"
description: "Discussion on \"Write a Simple Counter in ReactJS.\". class Counter extends React.Component {\n  constructor(props) {\n    super(props);\n    this.state = {\n      count: 0\n    };\n    // Change code below this line\nthis.increment=this.increment.bind(this);\nthis.decrement=this.decrement.bind(this);\nthis.rese..."
url: "https://hashnode.com/posts/write-a-simple-counter-in-reactjs/620c952f7cf10d2765e29128"
---

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

Discussion

# [Write a Simple Counter in ReactJS.](https://magnus.hashnode.dev/write-a-simple-counter-in-reactjs?utm_source=hashnode&utm_medium=feed)

class Counter extends React.Component { constructor(props) { super(props); this.state = { count: 0 }; // Change code below this line this.increment=this.increment.bind(this); this.decrement=this.decrement.bind(this); this.rese...

Feb 16, 2022 · 1 min read · magnus.hashnode.dev  
Read the article

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

## Written by

[Magnus](https://hashnode.com/@magnus2022)

@magnus2022

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

Frontend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
