Using Svelte with Next.js
Hi everyone,
I was wondering if it's possible to use Svelte with Next.js? I know I need to use Next.js for SSR or else my site won't be fast enough (dan abrams said so) but also rich harris said the dom is pure overhead so i dont wanna use react. how can i slot in svelte instead? im sure there is a way...
16 Replies
You should use react instead of next js
no i cant, without next.js my site will be too slow without ssr and vercel
Tailwind can fix that
dan abrams and geo ranch said i have to use next and vercel tho
how can i use tailwind
does it use jsx?
Not sure
But I heard it’s better than MySQL
oh okay thats good
i heard mysql uses client side rendering
which is bad
@benothy tenothy for ssr and ssg with svelte. use. sveltekit
https://kit.svelte.dev/
SvelteKit
Web development, streamlined
react-mongodb is another option it uses react ssr rendering for mongodb
fun. fact. you can. render vue or angular also with nextjs
I tried to do this for the meme, and it actually was easier than I thought https://github.com/ronanru/svelte-in-nextjs
GitHub
GitHub - ronanru/svelte-in-nextjs
Contribute to ronanru/svelte-in-nextjs development by creating an account on GitHub.
RSC and svelte in one project :deranged:
lmao
does it. acrually work show the deployed version (too lazy. to clone and do. i)
Create Next App
Generated by create next app
damn
what the fuck did I just read
or just use astro..
ssr + react + svelte + vercel