We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There's no support for static variables in the components, when I attempt to use static vars in my component classes here's what I get:
ERROR in ./src/components/MyComponent.js Module build failed: SyntaxError: ./src/components/MyComponent.js: Unexpected token (14:19) 12 | class MyComponent extends Component { 13 | > 14 | static propTypes = { | ^ 15 | myProp: PropTypes.string, 16 | otherProp: PropTypes.bool, 17 | awesomeProp: PropTypes.object,
I believe that switching to stage-0 (or even stage-1) instead of stage-2 will resolve the issue. Is there a reason the project is using stage-2?
stage-0
stage-1
stage-2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There's no support for static variables in the components, when I attempt to use static vars in my component classes here's what I get:
I believe that switching to
stage-0
(or evenstage-1
) instead ofstage-2
will resolve the issue. Is there a reason the project is usingstage-2
?The text was updated successfully, but these errors were encountered: