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
Motivation is the same as the creators of dynamic props in javascript: sugar.
Since jsx is sugar on top of javascript, and javascript has exp props, we need to add exp props to jsx tags, to support javascript semantics.
Thanks for the issue.
This is more of a JSX feature request, than React.
It has already been proposed in facebook/jsx#108, so let's track it there. There was also a different variation in facebook/jsx#21.
I think it's plausible something like this will make it into a future version. However, there is also less demand for this particular feature as people adopt static typing and it wouldn't work that well anyway.
Summary
Add exp prop syntax
Basic example
Alternatives
rest style
variable style
Motivation
Motivation is the same as the creators of dynamic props in javascript: sugar.
Since jsx is sugar on top of javascript, and javascript has exp props, we need to add exp props to jsx tags, to support javascript semantics.
Detailed design
this:
compile to:
Usage example
The text was updated successfully, but these errors were encountered: