We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React 最佳实践 (camsong)
组件化开发* 组件应尽可能 stateless (无状态化 ) * React 拥抱函数式编程思想,纯正的函数式讲究的是绝对的无状态化,React 为了降低学习成本还是允许组件保持 state。 * 能通过计算得来的 state 就不要用 state,每次用时计算一遍即可。 * 在 componentWillReceiveProps 中如果有对这个 state 做同步,那就直接使用 props 即可...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
React 最佳实践 (camsong)
The text was updated successfully, but these errors were encountered: