For loop JSX destructuring #12
ivanjeremic
started this conversation in
Proposals
Replies: 2 comments
-
Currently in conflict with #9 We can probably redesign this in a way that it doesn't have to follow the markup structure. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Maybe this syntax with <For each={items()} (item, index) =>
<div>id: {item.id} - index: {index}</div>
</For> It still has the feeling of closing the opener block because |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think there needs to be something like JSX destructuring and loops would look cleaner without a function.
Now:
After:
Beta Was this translation helpful? Give feedback.
All reactions