S
SolidJS2mo ago
nkitku

using solid-js/h but reactivity not working is there any way to make it work

Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
6 Replies
Jasmin
Jasmin2mo ago
you need to pass an accessor to the each prop: https://playground.solidjs.com/anonymous/c843bed5-1eb1-4a6b-8960-b8feee5be05b each: visibleItems,
nkitku
nkitkuOP2mo ago
thanks
nkitku
nkitkuOP2mo ago
No description
nkitku
nkitkuOP2mo ago
this is also not updating
nkitku
nkitkuOP2mo ago
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
Jasmin
Jasmin2mo ago
Make the style prop a function:
{
style: () => ({ position: "relative", height: `${totalHeight()}px` }),
},
{
style: () => ({ position: "relative", height: `${totalHeight()}px` }),
},

Did you find this page helpful?