Skip to main content

Rendering for Reacts

Rendering in React is how a component turns data into output, including showing lists, choosing what appears with conditions, and handling forms. Lists use map with a stable key, conditions use ternaries or logical operators, and forms are usually controlled, so state holds each input's value.

Stage: Components · Part of the React roadmap · Last reviewed 19 November 2026

What to learn in Rendering

Rendering interview questions

Why does React need a key when rendering a list?

Keys let React match elements between renders, so it can reuse, move or remove the right DOM nodes and keep each item's state. Keys should be stable and unique among siblings, such as a database id.

What is a controlled component?

A controlled form element gets its value from React state and updates that state through an onChange handler, so React is the single source of truth. An uncontrolled element keeps its own value in the DOM, read through a ref when needed.

Where Rendering fits in the React roadmap

Rendering belongs to the Components stage (beginner level), which takes about 25 hours. Think in components.

Back to the full React roadmap