React learning hub
React is a JavaScript library for building user interfaces out of small, reusable components. It powers a large share of modern websites and is a common first choice for front-end work.
The guides here start with creating a first app and move on to hooks, which is where most beginners get stuck. We keep the list short on purpose: each guide is meant to be read and followed, not skimmed.
A suggested path
- 1
Create an app
Set up a project and understand what each file does.
Related guide: How to Create a React App: A Step-by-Step Guide for Beginners → - 2
Learn the hooks
Start with state, then effects, and learn their dependency rules early.
Related guide: React useState Explained: Updating State, Objects and Arrays → - 3
Pick the surrounding tools
Routing, forms and data fetching are separate choices; compare the options before committing.
- 4
Compare and decide
If you are choosing between frameworks, read how React and Vue differ.
Related guide: Difference between ReactJS and Vue.js: A Comprehensive Comparison →
All React guides (6)
Getting started
Your first React app.
Hooks and state
How components remember and react to change.
Choosing a framework
How React compares with the alternatives.
Security and mistakes
What to avoid before you ship.
More guides
Other articles on this topic.
Free tools for React
They run in your browser, so what you paste is not uploaded.
- JSON to TypeScript ConverterTurn any JSON into TypeScript interfaces or types, with optional keys, unions and nested types worked out for you.
- JSON Formatter & ValidatorFormat, validate and minify JSON in your browser. Shows the exact line and column of any error.
- CSS Formatter & MinifierBeautify CSS with consistent indentation, or minify it to reduce size. Reports CSS syntax problems. Runs in your browser.
- Color Converter & Contrast CheckerConvert colours between HEX, RGB, HSL, HSV, HWB, CMYK and OKLCH, check WCAG contrast and make tints and shades.
- Regex TesterTest JavaScript regular expressions live: see matches highlighted, capture groups and a replace preview.
- JavaScript Formatter & MinifierBeautify JavaScript with clean indentation, or minify it with a real compressor. Shows syntax errors with line and column.
- API Request Tester (REST Client)Send GET, POST, PUT, PATCH and DELETE requests from your browser, import cURL commands, and copy the code as cURL, fetch, Axios or Python.
Common questions
Do I need to know JavaScript before React?
Yes. You should be comfortable with functions, arrays, objects and modern syntax such as arrow functions and destructuring. React then builds on those.
Why does useEffect run twice in development?
React's strict mode runs effects an extra time in development to help you find missing cleanup. It does not happen in production. Our useEffect guide explains dependencies and cleanup.
React or Vue?
Both are solid. React has the larger ecosystem and job market; Vue is often quicker to pick up. Our comparison article goes through learning curve, syntax, state management and performance.