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
Jasmin3d ago
you need to pass an accessor to the each prop: https://playground.solidjs.com/anonymous/c843bed5-1eb1-4a6b-8960-b8feee5be05b each: visibleItems,
nkitku
nkitkuOP3d ago
thanks
nkitku
nkitkuOP3d ago
No description
nkitku
nkitkuOP3d ago
this is also not updating
nkitku
nkitkuOP3d ago
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
Jasmin
Jasmin3d 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?