-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some frontend stuff #130
Comments
@ndrean had you previously looked at As you say there are way too many |
Yes, but AlpineJS is 14k and uses ugly tricks. To forget. VanJS is 1k and uses 4 words. SolidJS is 8k, quite easy, createSignal, createEffect sometimes, quite React-like but no VDOM. The problem I have with Liveview is that you don't control the DOM, anything is overwritten by Liveview which I don't like and make things super complicated as soon as you have a dynamic view (think of adding inputs on-the-fly...). Furthermore, it is very costly to run since it is SSR so you will need to power up your server with the traffic, not talking of how you run on mobile. The big thing with SSR is safety, I 100% agree. But all these are old and well-known tech choices. I will have a look at Svelte, thks. Mobil friendly? |
|
Yes, |
Agreed on |
I spent the last 2 weeks using SolidJS and VanJS. It is very nice to use a framework that does not use a VDOM. Makes everything easy. There are numerous frontend frameworks, but these 2 are interesting I believe (again no VDOM) for small to medium size projects. As for the performance, I don't know. SolidJS is not so new whilst VanJS is, but very impressive: the build size is small. I also use Universal-Router (2k) as the bundle size of React-Router is huge. For the store manager, I also use Zustand (1k). All together this reduces significantly the bundle size.
With
Phoenix Liveview
, you don't control the DOM but you can use hooks to inject JS stuff. I will try to combine both in an app.An example with VanJS: https://github.com/ndrean/vanjs-dialog-modal. This takes 3-4 days, learning and doing, quite easy and.. no VDOM!
An example with SolidJS: https://github.com/ndrean/Solid-components. It is also quite easy to use, and again no VDOM.
The text was updated successfully, but these errors were encountered: