Sugestion for Repeat component
On last stream Ryan show a Repeat components and I like it. Specially that I ofter need to just render something X times.
I've check solid-primitive@range, but it's Repeat not work like I expected
Can someone tell if this self made component will work good, have any major bugs or just strait up is worst then <For>
From my tests it's render properly, dispose only points that are pop'ed and I don't see any warns in console about missing root ect.
3 Replies
Simple example of how it's work:
https://playground.solidjs.com/anonymous/0f624889-0a40-46d9-85f7-9b45088a1e15
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
maybe https://playground.solidjs.com/anonymous/c2a322e1-e94d-4ecb-8083-5868f7acb22e is a simpler implementation
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
that's how i always do it when i need a component like that