---
title: "Discussion on \"Bind 'this' to a Class Method\" | Hashnode"
description: "Discussion on \"Bind 'this' to a Class Method\". In addition to setting and updating state, you can also define methods for your component class. A class method typically needs to use the this keyword so it can access properties on the class (such as state and props) inside the scope of the method...."
url: "https://hashnode.com/posts/bind-this-to-a-class-method/620b3b14dcdf3321c2e037a0"
---

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

Discussion

# [Bind 'this' to a Class Method](https://magnus.hashnode.dev/bind-this-to-a-class-method?utm_source=hashnode&utm_medium=feed)

In addition to setting and updating state, you can also define methods for your component class. A class method typically needs to use the this keyword so it can access properties on the class (such as state and props) inside the scope of the method....

Feb 15, 2022 · 2 min read · magnus.hashnode.dev  
Read the article

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

## Written by

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

@magnus2022

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

Frontend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
