Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/willemliu/static-next

Showcase NextJS rendering strategies and pros/cons
https://github.com/willemliu/static-next

client-side-rendering csr css-modules hybrid-ssr nextjs now react reactjs scss-modules server-side-rendering single-page-app spa ssg ssr static-site-generation typescript zeit-now

Last synced: 4 days ago
JSON representation

Showcase NextJS rendering strategies and pros/cons

Awesome Lists containing this project

README

        

# static-next

This project showcases the differences between the rendering strategies provided by Next.js.

The strategies involves data-fetching implementations in:

- getInitialProps
- getServerSideProps
- getStaticProps
- getStaticPaths
- useEffect

Static-site-generation is achieved using `getStaticProps` and `getStaticPaths`. Vercel provides `Deploy Hooks` feature to allow a regeneration of the site upon calling the webhook. This can be done from within the [demo](https://static-next.vercel.app) itself.