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

JSX: Added support for general spread expressions #2754

Merged
merged 1 commit into from Feb 7, 2021

Conversation

RunDevelopment
Copy link
Member

As per JSX spec, spread attributes can now contain general JS assignment expressions (so basically almost any JS expression).


This fixes #2753.

@github-actions
Copy link

github-actions bot commented Feb 7, 2021

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of -10 B (-1.0%).

file master pull size diff % diff
components/prism-jsx.min.js 960 B 950 B -10 B -1.0%

Generated by 🚫 dangerJS against 5f221f8

Copy link
Member

@mAAdhaTTah mAAdhaTTah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New features with a smaller footprint? Win!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In JSX components, spreading props breaks component's syntax highlighting.
2 participants