New issue
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
Syntax error in .astro file when trying to render multiple nodes in map #405
Projects
Comments
Not sure if this is the same bug, but I don't seem to be able to use JSX within the head matter. This works within an <ul>
{['foo','bar'].map(x => <li>{x}</li>)}
</ul> This does not: ---
let items = ['foo','bar'].map(x => <li>{x}</li>);
---
<ul>
{items}
</ul> Neither does this: ---
let item = <li>{x}</li>;
---
<ul>
{item}
</ul> Here are the full details of the 500 error:
|
Discussing this with the team! We'll likely need a built-in |
Just saw this; works like a charm :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Syntax example:
This is a contrived example, but my actual use case is for multiple nodes of an SVG. I also tried using a fragment node to wrap the contents of the map, but received an error that the fragment is not defined.
The text was updated successfully, but these errors were encountered: