Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T19:43:57.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T10:03:44.136Z (over 1 year ago)
- Language: JavaScript
- Size: 322 KB
- Stars: 5
- Watchers: 2
- Forks: 10
- 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).