Skip to main content
btheo.com btheo.com > press start to play
NEW POST: NODE.JS SECURITY 2025 OPEN FOR FREELANCE 10+ YEARS EXP REACT × NODE × AWS NEW POST: NODE.JS SECURITY 2025 OPEN FOR FREELANCE 10+ YEARS EXP REACT × NODE × AWS
TIL · 18 FEB 2025 · NOTE #007 ESC
TIL NOTE #007

The Cost of Inline Styles

Inline styles increase re-renders in React and make CSS optimizations harder.

Instead, use CSS modules, Tailwind, or Styled Components.
If dynamic styles are needed, memoize computed styles using useMemo():