Hacker News new | ask | show | jobs
by victorbjorklund 811 days ago
If you just need one simple thing in your app that uses JS it might be overkill to bring in LiveSvelte only for that.
1 comments

That's true. And another downside is that once you're in the Svelte environment you can't use your Phoenix components inside those Svelte components.

I've thought about adding a library of default Svelte components which mirror the core components you get from Phoenix out of the box. But then again you lose forms and changesets etc, it's just annoying.

Where I see LiveSvelte fit is where you really need a lot of complex client side state. Sprinkle it in, but keep using phoenix components as your default, even with hooks