Practical uses
- Build component-based web interfaces
- Create dashboards and admin systems
- Power server-rendered and static sites
- Share UI concepts with native mobile apps
A JavaScript library for building user interfaces from components.
React lets you build a user interface out of small components, each describing what the screen should show for the current data. It was released by Facebook in 2013 and is now the most widely used front-end library.
Install Node.js first, then create a new React project with Vite. Vite sets up everything you need to start writing components.
# Using Vite (recommended):
npm create vite@latest my-app -- --template react
cd my-app
npm install
npm run dev
# Or with TypeScript:
npm create vite@latest my-app -- --template react-tsLearn the basics first, then pick up these tools when a project needs them.