NextJS Concepts Here:-
Routing Using App Router:-
- Routes Using Folder Structure
- Nested Routes
- Dynamic Routes
- Catch All Routes(Segments)
- Route Groups
- Parallel Routes using Route Slots
- Intercepting Routes
- Parallel Intercepting Routes
Server Routing Using Route-Handlers
- GET Methods using route-handlers route.ts
- POST Methods using Route-handlers route.ts
- PATCH Methods using Route-handlers route.ts
- DELETE Methods using Route-handlers route.ts
- PUT Methods using Route-handlers route.ts
File Convention of NextJS
- page.tsx
- layout.tsx
- template.tsx
- not-found.tsx
- loading.tsx
- error.tsx
Server Components Vs Client Components & Component Composition Client Components are once rendered on the Server and then subsequent renders are performed on the client. Server Componetn are rendered on the Server & then the rendered html file is sent to the client where all the interactivity is added which is known as hydration.
CSR Vs SSR