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

Static properties for propTypes on components #16

Open
colevoss opened this issue Dec 17, 2015 · 3 comments
Open

Static properties for propTypes on components #16

colevoss opened this issue Dec 17, 2015 · 3 comments

Comments

@colevoss
Copy link

How do we feel about using static properties for propTypes?
Example:

static propTypes = {
  /*...*/
}

https://github.com/hudl/javascript/tree/master/react#ordering

@blainekasten
Copy link

👍

@blainekasten
Copy link

The only downfall about it is it's part of the es7 spec, so it's subject to change technically.

@colevoss
Copy link
Author

If we don't want to get es7y quite yet that thats understandable.

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

No branches or pull requests

2 participants