ryansolid / dom-expressions

A Fine-Grained Runtime for Performant DOM Rendering
MIT License
858 stars 125 forks source link

Ability to hide/show element on DOM using solid-js hypserscript #243

Open saivishwak opened 1 year ago

saivishwak commented 1 year ago

I am trying to render a component using a JSON layout and the layout has some state bindings which are createSignals internally. I would like to handle the hideComponent binded to a state value. To render the JSON to DOM I am using hyperscript.

So is there ability to just pass hide prop to h method which is signal and it automatically handles remove from DOM and add it to DOM? Like how _$insert does for JSX