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
Hello,
export default function App() { const src = "https://picsum.photos/200"; return ( <img src={src} alt="A random image" /> ); }
Above, the value of the src property is the src variable. In such a case, Svelte lets us exclude the repetitive attribute like this...
src
Svelte
<img {src} alt="A random image" />
I'd like to have the same in React. I think this would make the code more concise. Thank you 😀.
The text was updated successfully, but these errors were encountered:
This has been proposed a few times: #9696, #9707, #13967, #15731, #20164, #21236
The place to request/suggest this is the JSX repo though, specifically: facebook/jsx#23
I'm going to close this issue and suggest you join the discussion on that one. 👍🏼
Sorry, something went wrong.
Oops, I didn't see that. Thanks.
No branches or pull requests
Hello,
Above, the value of the
src
property is thesrc
variable. In such a case,Svelte
lets us exclude the repetitive attribute like this...I'd like to have the same in React. I think this would make the code more concise. Thank you 😀.
The text was updated successfully, but these errors were encountered: