Skip to content

JSX: Added support for general spread expressions#2754

Merged
RunDevelopment merged 1 commit intoPrismJS:masterfrom
RunDevelopment:jsx-spread-fix
Feb 7, 2021
Merged

JSX: Added support for general spread expressions#2754
RunDevelopment merged 1 commit intoPrismJS:masterfrom
RunDevelopment:jsx-spread-fix

Conversation

@RunDevelopment
Copy link
Copy Markdown
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
Copy Markdown

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%).

Details
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
Copy Markdown
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