React · Junior · Question 40 of 75
What is a "pure" component in React terms?
- 1A component with no styles and no CSS side dependencies
- ✓Correct answer: A component with no side effects in render and the same JSX for the same input
- 3Any component that extends
React.PureComponent
Explanation
Rendering must be a pure computation: no mutating external variables, no requests, no DOM changes. Side effects belong in event handlers or useEffect. StrictMode, concurrent rendering and the React Compiler rely on purity.