can I use solid as just a reactive library?
I'm trying but the
createEffect()
callbacks aren't running5 Replies
the reactivity system for node doesn't really do anything, you'd need to import the browser version of Solid to have it working
In particular, you can run
node
with the browser
condition via node -C browser
. If you're using a builder, it should have a way to specify conditions.That possibly would just work, but I think it also interferes with other dependencies, which could provide a non-browser implementation that should be loaded for them to be functioning. Loading the web build of the reactivity system directly is probably safer, I don't remember what the path for that is though.
I hear
@solidjs/reactivity
is Coming Soon. Until then, it's solid-js/dist/solid
(production) or solid-js/dist/dev
(dev)this works thank you