- hooks: useRouter, useParams and useSearchParams
- React Component
- Should You Use Redux in Next.js?
- Import Alias
- Hydration
- Next JS Rendering
- Next.JS Basic Understand
- Method(push,replace,back,forward)
- In NEXT.js-13 app router folder by default component will be server component. we connect with database.
- Advantages:
- An alias is a way to create shortcuts for your imports.
- "@/": ["./src/"] or @/* = ./src/*
- In server side rendering all html contents come from the server. Then needs to interactivities in the client. The process of add interactivities like event listeners, add javascript animations etc. it's called hydration.
- Static Site Generation(SSG)
Server Side Rendering
1. Generate HTML in request time 2. Website all content found in HTML file 3. It has dynamic data comes from database 4. Generate HTML Files in the server every single request time.
- Incremental Static Regeneration
1. Traditional react single page app(using vite)
2. A html block a lot of JavaScript codes come from the server side.
3. All HTML content Generate in the client(browser) using JavaScript.
4. It's not suitable for SEO.
- We can write CSS in global.css file
- Next.JS has built in font