https://github.com/sletheren/ssr-and-ssg-with-nextjs
A guide to create client-side-rendered (CSR) server-side-rendered (SSR) and static-generated (SSG) web applications using React & NextJS
https://github.com/sletheren/ssr-and-ssg-with-nextjs
Last synced: 3 months ago
JSON representation
A guide to create client-side-rendered (CSR) server-side-rendered (SSR) and static-generated (SSG) web applications using React & NextJS
- Host: GitHub
- URL: https://github.com/sletheren/ssr-and-ssg-with-nextjs
- Owner: Sletheren
- Created: 2020-07-02T17:32:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T19:43:57.000Z (over 2 years ago)
- Last Synced: 2025-04-03T03:06:02.151Z (3 months ago)
- Language: JavaScript
- Size: 322 KB
- Stars: 9
- Watchers: 1
- Forks: 16
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CSR vs SSR vs SSG using NextJS
This is an example of the different ways you can use NextJS to build web applications.
- Client-side rendering: `/pages/csr.js`
- Server-side rendering: `/pages/ssr.js`
- Static-site generation: `/pages/ssg.js`Start the project by running:
```bash
npm run dev
```For static-site generation run:
```bash
npm run export
```This is a starter template for [Learn Next.js](https://nextjs.org/learn).