Next.js is built on top of React, and React is built on top of modern JavaScript. Trying to learn all three at once is the fastest way to get lost, so this module builds the groundwork first: the language features, type safety, component model and version control habits that every later module assumes you already have.
It starts with modern JavaScript (ES6+) — arrow functions, destructuring, template literals, modules and the spread and rest operators you will see in nearly every Next.js file. TypeScript adds static types on top, which is the default language for new Next.js projects. You will then learn React itself: components, JSX, props, state and hooks such as useState and useEffect, before finishing with Git and GitHub for tracking changes and collaborating.
Watch the lessons in order, then continue on to Getting Started with Next.js.
freeCodeCamp and Dylan C. Israel cover the modern JavaScript syntax you will meet in every Next.js codebase — let and const, arrow functions, destructuring, template literals, spread and rest, and more.
A hands-on introduction to TypeScript from Scrimba: basic and custom types, unions, type narrowing, utility types and generics, so you can write safer JavaScript.
freeCodeCamp's full React course takes you through components, props, state, forms, effects and API calls by building real projects, the foundation for Server and Client Components later.
Gwen Faraday introduces version control: installing Git, commits, branches, merging and working with GitHub — the workflow you will use to ship and deploy your Next.js apps.