React.js · Starter
The basics: what a thing is and what it's for.
What is JSX?
What is a React component?
What does calling useState return?
What are props in React?
What is the purpose of the `key` prop when rendering a list of elements?
What is the difference between a controlled and an uncontrolled input in React?
What is a functional component?
In a class component, which method is responsible for describing what should appear on screen?
What is the virtual DOM, at a basic level?
How does a parent component typically pass data down to a child component?
Which hook is used to run side effects (like data fetching or subscriptions) in a function component?
What does `ReactDOM.createRoot(container).render(<App />)` do?
In React, how do you typically respond to a button click?
Which of these is a correct way to conditionally render JSX in React?
What is a React Fragment (`<>...</>`)?
What naming convention must a custom React component follow?
If a component is rendered as `<Greeting />` with no attributes, and it expects a `name` prop, what is `props.name` inside it (assuming no default is specified)?
What is the basic shape of a `useEffect` call?
What is `props.children` in React?
What does it generally mean when people say React state updates are "immutable"?