React Fundamentals for Frontend Developers
React fundamentals cover building interfaces from components: functions that take props and return JSX describing the UI. State created with useState and effects with useEffect let components respond to data. React re-renders when state or props change and updates the DOM by comparing the new output with the old.
Stage: UI Frameworks · Part of the Frontend Developer roadmap · Last reviewed 19 November 2026
What to learn in React Fundamentals
- Split a design into reusable components that receive props
- Manage input and toggle state with useState
- Explain what triggers a re-render and what does not
- Use useEffect for subscriptions and clean up correctly
- Render lists with stable keys instead of array indexes
React Fundamentals interview questions
Why do React lists need keys?
Keys let React match items between renders, so it can reorder, add or remove the right DOM nodes and keep each item's state attached to it. Using array indexes breaks this when the list order changes, causing wrong state or wasted updates.
When does useEffect run and how do you stop it running too often?
An effect runs after render, and again whenever a value in its dependency array changes. An empty array runs it once on mount. Include every value the effect reads, keep objects and functions stable with useMemo or useCallback, and return a cleanup function.
Where React Fundamentals fits in the Frontend Developer roadmap
React Fundamentals belongs to the UI Frameworks stage (beginner level), which takes about 6 hours. Component thinking with React, plus how the alternatives differ.
Other units in this stage
Back to the full Frontend Developer roadmap