How do I build an app with React?
Build the app from components, small functions that each return a piece of the screen, and keep changing data in state so React updates the page for you.
React is a JavaScript library for building user interfaces. Instead of changing the page by hand, you describe what the screen should look like for the current data, and React works out what to update. The core ideas are:
- Components: reusable pieces, like a button, a card or a whole page.
- Props: inputs you pass into a component, like a title or a price.
- State: data a component remembers, like what's typed in a box. Changing it redraws the screen.
- Effects: code that runs after the screen updates, often to load data from a server.
Start small. Build one component, then pass it props, then add a click that changes state. Grow from there to lists, forms and state shared between components.
AI writes React code quickly, but it makes recognizable mistakes: lists without stable keys, effects that run too often or read old values, and state that is changed in place instead of replaced. Learning to spot these is what lets you use AI safely here.
Vumbli's Components & React Thinking track goes from "Your first components" through props, state, effects, context and reducers, includes a mission where you fix AI-written stale-state bugs, and ends with you building a kanban board.
Start with these missions
- Your first components (Components & React Thinking)
- Props: components with inputs (Components & React Thinking)
- State & events with useState (Components & React Thinking)
Tracks that teach it
More questions, answered by building