React
React is a JavaScript library for building user interfaces from reusable components.
What Is React
React lets developers describe UI as components that render from state and props.
It is commonly used for single-page apps, dashboards, documentation sites, ecommerce, and full-stack applications.
How To Use React
Create components, compose them together, and update UI by changing state.
Basic Example
function Greeting({name}: {name: string}) {
return <h1>Hello, {name}</h1>;
}
Common Concepts
- Components split UI into reusable pieces.
- Props pass data into components.
- State tracks values that change over time.
- Hooks connect components to state and side effects.
What To Learn Next
Learn JSX, hooks, component composition, forms, routing, testing, and data fetching.