LESSON 01 / 03

What Next.js Adds to React

React builds interfaces; Next.js turns them into complete, fast, search-friendly websites with routing, server rendering and APIs built in.

๐ŸŽ“Mediumlevel
โฑ๏ธ25 minto finish
โœ๏ธ1activities

๐Ÿ“‚ Next.js Foundations๐Ÿท๏ธ Next.js

๐ŸŽฏ By the end of this lesson you canโ€ฆ

  • Explain what Next.js adds on top of React
  • Create a new Next.js project
  • Recognise the project structure
React alone vs Next.js
NeedReact aloneNext.js
Multiple pages / URLsadd a router librarybuilt in (folders)
Fast first load + SEOHTML arrives emptypages rendered on the server
Data from a databasebuild a separate APIserver components & server actions
Images, fontsdo it yourselfoptimised components
Deploymentconfigure it yourselfone click on Vercel
โŒจ๏ธ Terminal terminal
1npx create-next-app@latest my-notes2cd my-notes3npm run dev
๐Ÿ“„ Text project-structure.txt
1my-notes/2โ”œโ”€ app/3โ”‚  โ”œโ”€ layout.jsx      โ† wraps every page (html, body, nav)4โ”‚  โ”œโ”€ page.jsx        โ† the home page  โ†’  /5โ”‚  โ””โ”€ about/6โ”‚     โ””โ”€ page.jsx     โ† the about page โ†’  /about7โ”œโ”€ public/            โ† images and files served as-is8โ”œโ”€ package.json9โ””โ”€ next.config.js
๐Ÿ’ก Concept check
In the App Router, which file makes the page at /contact?

๐Ÿ“Œ Key takeaways

  • Next.js = React + routing + server rendering + data fetching + APIs + optimisations.
  • Create a project with npx create-next-app@latest.
  • The app/ folder is your website: folders are URLs.

Finished reading & practising?

Saved in this browser. Create a free account to keep it forever.