-
Pre-rendering: two froms:
- Static Generation
- Generates HTML on build time
- Resused on each request
- Uses
getStaticPropsfunction
- Server-side Rendering
- Generates HTML on request time
- Uses
getServerSideProps
- Static Generation
-
Clien-side rendering: use SWR react-hook.