Skip to content

Learn React for Free: Beginner Course with Live Examples (English and Arabic)

NeedMyTools Academy

Start free: sign in first

One free account opens every full lesson, the graded tests, your progress on any device and a certificate of completion. Sign in with an email code or Google in under a minute.

  • Full lessons and exercises
  • Graded tests that unlock the next lesson
  • Certificate with a QR code anyone can verify
Sign in or create a free account

Free forever. No card, no paywall.

Already signed in? The same button opens your panel.

Just looking? Each lesson shows a short preview without an account.

React is the JavaScript library most web teams use to build interfaces today. You split a page into components, small functions that each draw one part of the screen, and you describe what each part should look like for the current data. When the data changes, React updates the page for you. This course starts from your first component and builds up step by step: JSX, props, state, lists, forms and loading data from an API, and it ends with a small to-do app that saves its data. Every example runs the real React in your browser, so you can change the code and see the result straight away.

Quick answer

Learn React after JavaScript, in this order: components and JSX; props and composition; state with useState and event handlers; lists, keys and conditional rendering; forms; effects and fetching data; sharing state and context; then a project that puts it together. Know JavaScript functions, objects, arrays, array methods such as map and filter, destructuring, the spread syntax and modules first, because React code uses them on every line.

Level:
Beginner to intermediate, after JavaScript
8 lessons
About 5 hours plus practice
Content checked on 24 November 2026
0 of 8 lessons done on this device
Start the course

Lessons

  1. 1Components and JSXExplain what React does differently from changing the DOM by hand · Write a component and render it into the page with createRoot · Follow the JSX rules: one parent, closed tags, className and camelCase · Put values and expressions into JSX with curly braces30 min
  2. 2Props and compositionPass strings, numbers, booleans, objects and functions as props · Read props with destructuring and give them default values · Build wrapper components with the children prop · Explain one-way data flow and why props are read-only30 min
  3. 3State with useStateExplain why changing a normal variable does not update the screen · Add state with useState and change it from onClick handlers · Use updater functions when the next value depends on the previous one · Update objects and arrays in state by copying, not mutating35 min
  4. 4Lists, keys and conditional renderingTurn an array of data into elements with map · Choose stable, unique keys and explain why they matter · Filter and sort lists derived from state without changing it · Render parts of the screen conditionally and avoid the 0 trap35 min
  5. 5Forms in ReactBuild controlled text, number, select and checkbox inputs · Manage many fields with one state object and one change handler · Handle submit with preventDefault and reset the form · Validate input and show clear, accessible error messages35 min
  6. 6Effects and fetching dataExplain what an effect is for and when it runs · Control re-runs with the dependency array and clean up after an effect · Fetch data with loading and error states and avoid race conditions · Recognise code that does not need an effect40 min
  7. 7Sharing state and contextLift state up to the closest common parent of the components that need it · Pass data down as props and events up as callback props · Create, provide and read a context with createContext and useContext · Decide between props, lifted state and context40 min
  8. 8Project: a to-do app with saved dataPlan the state of a small app before writing components · Add, toggle and delete list items without mutating state · Load saved data with a lazy initial state and save it with an effect · Handle blocked or broken storage safely60 min

NeedMyTools Academy

Sign in with a free account (email code or Google, no password) to open every lesson in full. Each lesson ends with a short test graded on our server, and the next lesson only unlocks after you pass. Pass the module tests, the final project and the final exam to get a certificate of completion with a transcript that anyone can check on this site. Without an account you can read a short preview of each lesson.

How grading works

  • Each lesson: pass the exercise (checked on our server), then a 5-question test with 4 correct. The test opens after you have spent some time on the lesson.
  • Three fails in a row lock that test for 30 minutes. Leaving a test unfinished counts as a fail.
  • Each module ends with a 10-question test (7 to pass, 3 tries a day). The course ends with the project and a 25-question final exam (18 to pass, 3 tries a day).
  • Questions are drawn at random and many have values that change for every student, so sharing answers does not help.
  • The certificate says what it is: a certificate of completion for an unsupervised online assessment, not a degree or an accredited qualification.

What you will be able to do

  • Build a page from components written in JSX
  • Pass data down with props and compose components with children
  • Make interfaces respond to clicks and typing with state
  • Update objects and arrays in state the way React expects

Who this course is for

People who can write basic JavaScript and want to build real web interfaces: students aiming for front end or full stack jobs, developers who maintain plain JavaScript pages and keep fighting to keep them in sync, and anyone heading for Next.js, which is built on React. Finishing the free JavaScript course here first is the best preparation, and the TypeScript course is useful but not required, since the lessons use plain JavaScript. You need no installation: a modern browser on a computer is best, and the examples also run on a phone.

Why learn React

Plain JavaScript works well for a few interactive bits, but as a page grows you spend most of your time keeping the screen in step with the data: update the cart badge, the total, the button state and the empty message, all by hand, every time. React removes that bookkeeping. You describe the screen for any given data and React keeps it correct. Meta released React as open source in 2013, and today it powers sites of every size, from small shops to large platforms. Next.js, React Native for mobile apps and many job listings in the Gulf and worldwide all build on the same skills you learn here.

How the examples run

Each example is a small page with an empty `<div id="root">` and a `<script type="text/jsx">`. When the example opens, your browser loads React 19 from a public CDN, checks the JSX for syntax errors, turns it into JavaScript and runs it inside a sandboxed frame, about 400 KB the first time and cached after that. Imports work as in a real project, `import { useState } from "react"`, and the Console box shows your logs, React warnings and errors with the line they point at. The development build of React is used on purpose, because its warnings teach you a lot. The exercises are checked by reading your code as text; nothing runs on our server.

Thinking in React

The hardest part of React is not the syntax but the way of thinking. Instead of "when the button is clicked, find the counter and change its text", you think "the screen shows `count`; the button changes `count`". Data lives in state, flows down through props, and the screen is a function of that data. Each lesson trains this habit with small, realistic examples from shops, menus and receipts, with prices in dirhams and riyals, and each ends with an exercise that the page checks for you, a short quiz and the mistakes beginners make most often.

Where the facts come from

The official React documentation at react.dev, written by the React team, is the main reference for this course, and every lesson links to the pages its facts were checked against, with the date of that check. The lessons follow the modern way React is written: function components and Hooks, not the older class components. Version numbers and warnings shown in the examples come from the pinned React release the playground loads, so what you see matches what the text says.

Questions about this course

Do I need to know JavaScript before learning React?

Yes. React is JavaScript, and every component uses functions, objects, arrays, map, destructuring and modules. Without them React feels like magic and errors are hard to read. The free JavaScript course here covers everything React needs.

Should I learn React or Next.js first?

React first. Next.js is a framework built on React that adds routing, server rendering and deployment features. Everything in Next.js pages is React components, props and state, so learning React first makes Next.js much easier.

Which React version does this course use?

React 19, with function components and Hooks. The playground loads a pinned release, so the warnings you see match the lessons. What you learn also applies to React 18 projects, apart from a few newer features.

Is this React course free and in Arabic?

Yes. Every lesson is in English and Arabic, with no signup needed to read it or run the examples. Code and error messages stay in English, as they do in real projects, and the Arabic text explains each one.

Do I have to learn class components?

Not to start. New React code uses function components and Hooks, and the official docs teach them first. You may meet class components in older projects; once you know React well, reading them takes an afternoon.

Code examples stay in English and run in a sandbox on your device. If you spot a mistake, tell us through the contact page.