3 ms·
That's exactly what Next.js is: https://nextjs.org https://nextjs.org (as well as a few other tools in the ecosystem)
by acemarke 6y ago
That's exactly what Next.js is:
https://nextjs.org https://nextjs.org
(as well as a few other tools in the ecosystem)
- eatonphil 6y agoThanks! Somehow I thought next.js was only for SSR. What are the other tools?
- chrisco255 6y agoGatsby: https://www.gatsbyjs.com/ https://www.gatsbyjs.com/
- arcturus17 6y agoWait, Next.js would be useful for pure client SPAs? I built a prototype for the SSR and loved it, but it didn’t occur to me it could be used for client apps too... Does it need to be served from a Node.js environment or can it be used as a bundler and be served from other servers (eg Django or Rails)?
- chrisco255 6y agoNext.js can output static pages now on build time, so you don't necessarily need to use SSR unless you're hydrating data on the server.
- dbbk 6y agoIf you're building a dashboard-like SPA it's not really suitable, because every page is its own component, so you can't do nested layouts or routing.
- httgp 6y agoYou actually can build nested layouts in Next.js — see https://adamwathan.me/2019/10/17/persistent-layout-patterns-in-nextjs/ https://adamwathan.me/2019/10/17/persistent-layout-patterns-...