Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
throwaway290
on May 3, 2023
|
parent
|
context
|
favorite
| on:
JavaScript import maps are now supported cross-bro...
If it doesn’t have fragments, how do you implement something equivalent to this when mapping over items and every item has to output multiple roots?
<React.Fragment key={idx}>
anton96
on May 3, 2023
[–]
You can import the Fragment component of the React package or stack them directly, it works too. Normally, the empty bracket syntax should work, they have a few issues closed and open that talk about it in their repo.
throwaway290
on May 4, 2023
|
parent
[–]
Thanks! Interesting stuff
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: