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...
React Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
React
Why does passing `style={{ color: 'red' }}` inline as a prop potentially hurt performance?
A
Inline styles are always slower to render than external CSS
B
A new object literal is created on every render, giving the prop a different reference each time — defeating React.memo comparisons that rely on stable references
C
JSX doesn't support object literals as prop values
D
It causes a memory leak
Check Answer