🌐React
Also known as React.js, ReactJS
A JavaScript library. You build screens with it out of small parts.
Think of it like
Think of it like a box of building bricks for screens. You snap parts together, and it keeps them up to date.
Example
React was first released by Facebook, now Meta, in 2013. Emma uses it to build her shop's product pages from small components.
Why it matters
React is the front-end tool many job posts ask for. Its ideas shaped many other frameworks.
Definition
Example code
jsx
function App() {
return <Greeting name="Emma" />;
}Common mistake
Key takeaways
- 1Built from components. Small parts make a screen.
- 2State drives the screen. React updates what changed.
- 3JSX. HTML-like tags in JavaScript.