Open
Description
It would be good to have ability to evaluate attribute name. For example:
<Component {attr}="value" />
Might be transpiled to:
Component({
[attr]: "value"
});
Yes, this is es6 output because JSX spec extends es6 specs. Transpilers/targets which do not support es6, but only es5 might choose to not support this feature. But for others it might be useful.
Also, E4X support this feature and for me, it's reasonable to have it.
Metadata
Metadata
Assignees
Labels
No labels