Lesson
1 / 3What is React?
React is a JavaScript library for building user interfaces. It allows you to create reusable pieces called 'components'.
code.txt
import React from 'react';
function Welcome() {
return <h1>Hello, React!</h1>;
}Think
of React as a set of LEGO bricks. Each brick is a component, and you snap them together to build your app.