Skip to content

feat(methods): support static methods on function components #433

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

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

motiz88
Copy link
Contributor

@motiz88 motiz88 commented Feb 13, 2020

Extends componentMethodsHandler to recognise static methods added to function components via assignment. Internally to the handler, methods may now be represented either by AssignmentExpression nodes or by object/class method nodes.

@danez danez merged commit 72a2344 into reactjs:master Feb 13, 2020
@motiz88 motiz88 deleted the function-component-statics branch February 17, 2020 15:55
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants