ReReact · Lesson 1 of 8
Hello, React!
React turns your app into a tree of components. Each component is a function that returns JSX — which looks like HTML but is actually JavaScript.
JSX lets you write HTML-like syntax in JavaScript. Babel (or Vite) transforms it to `React.createElement()` calls before the browser sees it. The key mental model: components are functions, JSX is what they return.
◆ Note
Component names must start with a capital letter. `<button>` is HTML. `<Button>` is a React component. React uses this convention to tell the two apart.
Component names must start with a capital letter. `<button>` is HTML. `<Button>` is a React component. React uses this convention to tell the two apart.