Hello,
I call the vue components in the views, but I want to render them serverside.
In Laravel, we have package for Serverside Rendering Javascript. (VueJS, ReactJS).
Is there a plug like this for Elixir/Phoenix?
1 Like
reaxt
is the most popular package but there are a few others if you search on hex.pm, or it’s actually really easy to make your own way just via a port.
EDIT: Just do note that javascript rendering is significantly slower than EEX templates, like significantly, but that’s mostly just because EEX templates are so fast. In most cases the speed difference won’t matter unless you get a very popular site or want to make it load as fast as possible.
2 Likes
How about some tool for vue.js server side rendering?
Some are done for React or Svelte.
1 Like
Thanks for the fresh Svelte link (since I’m interested in Svelte)…
1 Like