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
Allow curly braces without a preceding prop= to define props. This makes it easy to refactor JSX props into objects by removing the need to change prop=value to prop: value, for each prop.
This is currently a syntax error, so allowing this shouldn't break existing code.
A slightly different take on this request.
Allow curly braces without a preceding
prop=
to define props. This makes it easy to refactor JSX props into objects by removing the need to changeprop=value
toprop: value,
for each prop.This is currently a syntax error, so allowing this shouldn't break existing code.
Example:
It also has nice symmetry with current spread syntax:
The text was updated successfully, but these errors were encountered: