What is a functional component?
A JavaScript function that accepts props and returns JSX. The modern default in React; hooks provide state and lifecycle. Prefer over class components.
function Greeting({ name }) {
return <h1>Hello, {name}</h1>;
}
Frontend & Mobile · 12 sections
Components, hooks, state, the rendering model and React 19 / Server Components — the full React interview surface in one sheet.
A JavaScript function that accepts props and returns JSX. The modern default in React; hooks provide state and lifecycle. Prefer over class components.
function Greeting({ name }) {
return <h1>Hello, {name}</h1>;
}
Class components use lifecycle methods and `this`; functional components use hooks. Functional is preferred for simplicity, hooks composition, and because new features are hooks-only. Class components still work but are legacy.
class C extends React.Component {
render() { return <div>{this.props.x}</div>; }
}
Syntactic sugar for `React.createElement`. Expressions go in `{}`. Use `className`, `htmlFor`; attributes camelCase. Must return a single root or Fragment.
const el = <div className="box">{value}</div>;
145 more cards in this sheet
Unlock the Frontend & Mobile bundle — ₹399
One-time payment. Unlocks this sheet and 8 other sheets in the bundle, plus a typeset PDF of each.
Unlock the bundle See all bundles
Or get all 76 sheets for ₹999 — one payment, every future sheet included.
What's new and the interview questions people are actually getting asked. No spam.