Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).