DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
JavaScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
JavaScript
Why must React components behave as pure functions of props and state?
A
It's just a style guideline with no technical consequence
B
React relies on being able to call a component function multiple times, skip re-renders, and compare old/new state by reference — all of which break if rendering has side effects or mutates data
C
JSX syntax requires pure functions to compile
D
Pure functions run faster in all cases
Check Answer