facebook / jsx

The JSX specification is a XML-like syntax extension to ECMAScript.
http://facebook.github.io/jsx/
1.96k stars 133 forks source link

Implement new feature for flexible component attr definition #89

Closed odykyi closed 6 years ago

odykyi commented 6 years ago

Do you want to request a feature or report a bug? i want this feature: this <MyComponent {id}/> instead this <MyComponent id={id}/> What is the current behavior? <MyComponent id={id}/> If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/84v837e9/). <MyComponent {id}/> instead this <MyComponent id={id}/> What is the expected behavior? <MyComponent {id}/>

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React? latest

syranide commented 6 years ago

See this discussion: https://github.com/facebook/jsx/issues/23#issuecomment-243380386 (around that comment and down)