You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a bug or simply something that is not yet supported, but it would be awesome to see support for ES class property initializers. They are currently a stage-1 proposal but they make authoring React components much nicer.
I've tried this on both develop and master.
Example code:
exportclassAboutextendsReact.Component{staticpropTypes={children: PropTypes.any,}render(){return(<divclassName={cx('page')}><divclassName={cx('siteTitle')}><h1>About Page</h1></div><p>Welcome to the about page...</p></div>);}}exportclassNotFoundextendsReact.Component{render(){return(<divclassName={cx('page')}><h4>Not found</h4></div>);}}
Here's how it's currently being highlighted. I annotated the screenshot with the syntax IDs of the highlighted parts of text:
I'm not sure if this is a bug or simply something that is not yet supported, but it would be awesome to see support for ES class property initializers. They are currently a stage-1 proposal but they make authoring React components much nicer.
I've tried this on both
develop
andmaster
.Example code:
Here's how it's currently being highlighted. I annotated the screenshot with the syntax IDs of the highlighted parts of text:
Related: #393
The text was updated successfully, but these errors were encountered: