From d3df872ee95452a1542c5254cbb3df0e54c57c4b Mon Sep 17 00:00:00 2001 From: Liam Duffy <3338808+liamness@users.noreply.github.com> Date: Sat, 12 Sep 2020 09:19:00 +0100 Subject: [PATCH] Emphasise that Next.js is capable of SSG This emphasises that Next.js is capable of static site generation. A lot of comparisons between the most popular React frameworks seem to go like this: - CRA is good for client-side SPAs - Gatsby is good for static sites - Next.js is good for server-rendered applications So people who need static sites will typically always choose Gatsby. However, Next.js now supports [static site generation](https://nextjs.org/docs/advanced-features/static-html-export) - since earlier this year I think. So I feel this comparison should include that. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b1adc9c3bcd..6db44574976 100644 --- a/README.md +++ b/README.md @@ -177,9 +177,9 @@ Here are a few common cases where you might want to try something else: - If you need to **publish a React component**, [nwb](https://github.com/insin/nwb) can [also do this](https://github.com/insin/nwb#react-components-and-libraries), as well as [Neutrino's react-components preset](https://neutrino.js.org/packages/react-components/). -- If you want to do **server rendering** with React and Node.js, check out [Next.js](https://github.com/zeit/next.js/) or [Razzle](https://github.com/jaredpalmer/razzle). Create React App is agnostic of the backend, and only produces static HTML/JS/CSS bundles. +- If you want to do **server rendering** with React and Node.js, check out [Next.js](https://nextjs.org/) or [Razzle](https://github.com/jaredpalmer/razzle). Create React App is agnostic of the backend, and only produces static HTML/JS/CSS bundles. -- If your website is **mostly static** (for example, a portfolio or a blog), consider using [Gatsby](https://www.gatsbyjs.org/) instead. Unlike Create React App, it pre-renders the website into HTML at the build time. +- If your website is **mostly static** (for example, a portfolio or a blog), consider using [Gatsby](https://www.gatsbyjs.org/) or [Next.js](https://nextjs.org/). Unlike Create React App, Gatsby pre-renders the website into HTML at build time. Next.js supports both server rendering and pre-rendering. - Finally, if you need **more customization**, check out [Neutrino](https://neutrino.js.org/) and its [React preset](https://neutrino.js.org/packages/react/).