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
Astro v3.5.5 Node v18.17.1 System Windows (x64) Package Manager npm Output static Adapter none Integrations @astrojs/tailwind @astrojs/mdx
No response
The following code block results in an error: "Unable to assign attributes when using <> Fragment shorthand syntax!"
{ mydata.length <= 10 && ( <ul> {mydata.map((item) => ( <li>{item}</li> ))} </ul> ) }
changing the expression to mydata.length < 10 works as expected, so having <= is causing the issue.
mydata.length < 10
<=
The JSX expressions should be evaluated and not interpreted as fragments.
https://stackblitz.com/edit/github-foh8kw?file=src%2Fpages%2Findex.astro
The text was updated successfully, but these errors were encountered:
Closing as duplicate of #723
Sorry, something went wrong.
No branches or pull requests
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
The following code block results in an error: "Unable to assign attributes when using <> Fragment shorthand syntax!"
changing the expression to
mydata.length < 10
works as expected, so having<=
is causing the issue.What's the expected result?
The JSX expressions should be evaluated and not interpreted as fragments.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-foh8kw?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: