Loading lesson path
[+: React is a JavaScript library for building user interfaces.
Formula
React is used to build single - page applications.React allows us to create reusable UI components. Start learning React now ❯ 🏁
Our "Show React" tool makes it easy to demonstrate React. It shows both the code and the result.
import { createRoot } from 'react-dom/client';function Hello() {
return (Formula
< h1 > Hello World!</h1 >);
}createRoot(document.getElementById('root')).render( <Hello />
);Example »
Many chapters in this tutorial end with an exercise where you can check you level of knowledge.
Test your React skills with a quiz.
This is an optional feature. You can study at W3Schools without creating an account.