webmastertoolbag.com

Online tools Web school 在线工具 基础教程 菜鸟教程 编程学习 Web 学校
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING INTRO TO HTML & CSS BASH RUST TOOLS

React Tutorial

Learn React

React is a JavaScript library for building user interfaces.

React is used to build single-page applications.

React allows us to create reusable UI components.

Become React Certified

Get certified with our React exam, includes a professionally curated study kit to guide you from beginner to exam-ready.

Get Certified ❯
Certified React Developer The candidate has passed the exam at the Professional level. Verify at verify.w3schools.com Stale Refsnes for w3schools.com -->

Learning by Examples

Our "Show React" tool makes it easy to demonstrate React. It shows both the code and the result.

Example:

import { createRoot } from 'react-dom/client';

function Hello() {
  return (
    <h1>Hello World!</h1>
  );
}

createRoot(document.getElementById('root')).render(
  <Hello />
);

Run Example »


Learning by Exercises

Many chapters in this tutorial end with an exercise where you can check you level of knowledge.

See all React Exercises



React Quiz

Test your React skills with a quiz.

React Quiz


Track Your Progress

Create a Webmastertoolbag account and get access to more features and learning materials:

  • View your completed tutorials, exercises, and quizzes
  • Keep an eye on your progress and daily streaks
  • Join the leaderboard and compete with others
  • Get your own avatar and unlock new skins
  • Create your own personal website

Sign Up »

Note

This is an optional feature. You can study at Webmastertoolbag without creating an account.


What You Should Already Know

Before you continue you should have a basic understanding of the following:

If you want to study these subjects first, find the tutorials on our Home page.

In addition, you should also have some experience with the new JavaScript features introduced in ECMAScript 6 (ES6), you will learn about them in the React ES6 chapter.


Course Certification

Get Certified in coding

Complete the Webmastertoolbag coding course, strengthen your knowledge, and earn a certificate you can add to your CV, portfolio, and LinkedIn profile.

Get Certified Today
Webmastertoolbag Certificate
Coding
Learn it. Practice it. Prove it.

×

Contact Sales

If you want to use Webmastertoolbag services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

FORUM ABOUT ACADEMY
Webmastertoolbag is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using Webmastertoolbag, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved. Webmastertoolbag is Powered by W3.CSS.

-->