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
If the JSX spread operator is used inside a tag, highlighting breaks starting at that point. Example code to be highlighted:
class MyComponent extends Component render() { const {tabs, ...otherProps} = this.props; const {currentTab} = this.state; return ( <TabBar {...otherProps} currentTab={currentTab} onTabClick={this.onTabClick} tabs={tabs} /> ) }
If {...otherProps} is there, the props after that are not highlighted. If {...otherProps} is removed, they highlight correctly:
{...otherProps}
The text was updated successfully, but these errors were encountered:
👍
I was about to raise something similar for JSX and comments:
tell me if you prefer to create another issue, but there are multiple ways like this that breaks highlighting.
Sorry, something went wrong.
@vkbansal: Can you investigate this?
@Golmote I'll try it over the weekend
561bceb
No branches or pull requests
If the JSX spread operator is used inside a tag, highlighting breaks starting at that point. Example code to be highlighted:
If
{...otherProps}
is there, the props after that are not highlighted. If{...otherProps}
is removed, they highlight correctly:The text was updated successfully, but these errors were encountered: