[Next.js] Flashcards

1
Q

Was ist Next.js?

A
  • Minimalistisches Framework das React Applications rendert

- Lässt React Apps Serverside laufen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Was sind die Haupt Features von Next.js?

A
  • Server Rendered Apps
  • Automatisches Code Splitting/Lazy Loading, was das Laden von unnötigen Code verhindert
  • Einfaches File-basiertes Routing (Pages) (Mappen nur wenn gewünscht)
  • Built ins CSS Support (Styled-JSX)
  • Hot-Reloading von neuen Code auf die Website beim Speichern
  • Deployment ist sehr einfach (build command)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Wie installiert man Next.js?

A

npm init
npm install next react react-dom

{  
  "scripts": {
                    "dev":"next",
                    "build":"next build",
                    "start":"next start"
                  }
}
pages/index.js
export default() => div> Hello World /div
How well did you know this?
1
Not at all
2
3
4
5
Perfectly