Hacker News new | ask | show | jobs
by ForHackernews 2233 days ago
> an open source Reactjs (Facebook) framework

Isn't React itself already a giant JS framework? They've made a framework-for-a-framework?

So the idea is to let developers write as though it's all one big React SPA (single page app) but then actually the static bits of it get compiled into vanilla HTML/CSS and served from a CDN?

1 comments

Yes, Next.js is "hybrid" framework for React. It allow you to incrementally adopt React, as well as evolve your application over time. Static pages, server-rendered, serverless functions––all within the same project.

For larger React projects, it's impractical to use the same rendering strategy for every page. Your marketing page can be static and your dashboard can be client-side rendered.