3 ms·
Why did you want to rewrite your Phoenix app as a SPA? Just to learn new things or because Phoenix is lacking? Have you tried LiveView? And can't you use Reac
by uxcolumbo 5y ago
Why did you want to rewrite your Phoenix app as a SPA?
Just to learn new things or because Phoenix is lacking? Have you tried LiveView?
And can't you use React with Phoenix?
- square_usual 5y agoI needed a lot more interactivity, especially with things like client side animations. LiveView is great if your usecase is sending fresh data - but if you want more interactivity, you have to use JS, and frameworkless JS is setting yourself up for pain for all but the simplest projects. The usual solution is ot use Alpine to add to LiveView but it didn't do enough for me. I'm a big fan of using static rendering as far as possible - I was "raised" on SSR Rails - but I know when I need an SPA. You can use React. I recommend it in my GP comment.