How to make props reactive?
Hi why isnt the props reactive there, in Btn component? I hope i dont have to use a module for this now :/
https://playground.solidjs.com/anonymous/00f4000c-2b99-413f-b393-0a9504cc6f14
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
20 Replies
Wrap the return of Btn in a fragment
i hate the new solid changes ðŸ˜
What new changes?
it used to work before
now nothing is reactive
like that?
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
Afaik this is how it always worked
Stuff is only reactive in JSX, effects, or memos
so this wont work right?

No
Destructuring and early returns never worked
how do you destructure then
splitprops seems so confusing
syntax looks so weird too

like why would one here not just use props.name here?
so many mental gymnastics
It's useful for not passing the greeting and name to the h3
you could just use props.name, it's just showing you that greting and name are put into the
local
objectcant i destructure anymore
ig i cant use this syntax anymore

cuz all of this will also run even if the dialog is closed

You could wrap it in another component I guess
Destructuring never worked without a plugin, idk if you're thinking of something else
sad :/
it works in all other frameworks
ig i'll never update solidjs version for nvchad.com
What version are you on right now?
1.8
GitHub
nvchad.github.io/package.json at main · NvChad/nvchad.github.io
Site for NvChad built using solidjs + unocss. Contribute to NvChad/nvchad.github.io development by creating an account on GitHub.