Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update class-components.md #709

Closed
wants to merge 1 commit into from

Conversation

Av1nag
Copy link

@Av1nag Av1nag commented Mar 2, 2024

Few Modifications in the class component section of react-typescript cheat sheet

Few changes in class component section.
@Av1nag
Copy link
Author

Av1nag commented Mar 2, 2024

Hey @filiptammergard.

Review the changes. Thank you.

PS: Sorry for multiple pull requests. Closed all the previous pulls

@filiptammergard filiptammergard linked an issue Mar 4, 2024 that may be closed by this pull request
@filiptammergard
Copy link
Collaborator

Hi @Av1nag! I actually think the current version is correct. Class methods are function properties defined on a class: https://www.typescriptlang.org/docs/handbook/2/classes.html#methods increment is an example of a class method.

Class properties are properties are more similar to state. pointer is an example of a class property.

Closing this, but feel free to comment if this does not solve the issue for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLASS METHODS AND CLASS PROPERTIES TITLES INTERCHANGED
2 participants