React
React is a popular JavaScript library for building user interfaces out of reusable components. It lets you describe what the screen should look like for any given data, and updates the page efficiently when that data changes.
React
React was created at Facebook (now Meta) and is one of the most widely used front-end tools in the world. Instead of manually updating the page when data changes, you write components that return what the UI should look like, and React handles keeping the screen in sync.
React is declarative and component-based. You build small, isolated pieces called components and combine them into complete apps. Most React code is written in JSX, a syntax that looks like HTML inside JavaScript.
Examples
JSX — Defines a component that renders an <h1> heading reading 'Hello, React!' on the page.
function App() {
return <h1>Hello, React!</h1>;
}