React Docs
Learn
Guides
Reference
Explanation
Examples
Community
⌘K
Sections
Sections
Learn
Guides
Reference
Explanation
Examples
Community
🇨🇳
简体中文
指南
性能优化
Performance
性能优化应该由测量驱动:先定位,再修复,最后验证收益,避免“为优化而优化”。
TL;DR
先用 Profiler/性能工具找到热点,再考虑 memo/拆分/虚拟化。
优先减少不必要渲染与昂贵计算,而不是盲目加 memo。
把性能优化当作产品质量:首屏、交互延迟与滚动体验都要衡量。
这篇文章有帮助吗?
有帮助
没帮助
Previous / Next
Previous
Testing
Next
Security
Related Links
Reference:API 细节对照
Learn:快速上手与基础概念
Examples:用代码验证理解