We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do you want to request a feature or report a bug? Feature
What is the current behavior? Curly braces are required to delimit Javascript expressions in JSX attributes.
<MyComponent foo={bar(1, 2, 3)} />
What is the desired behavior? All Javascript expressions can be expressed without the need for {}.
<MyComponent foo=bar(1, 2, 3) baz="quirk" life=42 pi=3.1415 sum=(x + y) fancy=`Hello ${name}` onClick=()=>{ this.andThat() } />
`Hello ${name}`
In short, requiring {} around all of these is unnecessary although the last one is a bit ugly with the =()=> thing.
The text was updated successfully, but these errors were encountered:
This is not a React issue, but a JSX one. Let’s keep track of it in the right repository.
facebook/jsx#25 facebook/jsx#51 facebook/jsx#64
Sorry, something went wrong.
Thanks for the pointer.
No branches or pull requests
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Curly braces are required to delimit Javascript expressions in JSX attributes.
<MyComponent foo={bar(1, 2, 3)} />
What is the desired behavior?
All Javascript expressions can be expressed without the need for {}.
<MyComponent foo=bar(1, 2, 3) baz="quirk" life=42 pi=3.1415 sum=(x + y) fancy=
`Hello ${name}`
onClick=()=>{ this.andThat() } />In short, requiring {} around all of these is unnecessary although the last one is a bit ugly with the =()=> thing.
The text was updated successfully, but these errors were encountered: