Skip to content
New issue

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

文章更新 [ 2016-01-31 ] #21

Open
yutingzhao1991 opened this issue Feb 1, 2016 · 0 comments
Open

文章更新 [ 2016-01-31 ] #21

yutingzhao1991 opened this issue Feb 1, 2016 · 0 comments
Labels

Comments

@yutingzhao1991
Copy link
Owner

  • React 最佳实践 (camsong)

    组件化开发* 组件应尽可能 stateless (无状态化 ) * React 拥抱函数式编程思想,纯正的函数式讲究的是绝对的无状态化,React 为了降低学习成本还是允许组件保持 state。 * 能通过计算得来的 state 就不要用 state,每次用时计算一遍即可。 * 在 componentWillReceiveProps 中如果有对这个 state 做同步,那就直接使用 props 即可...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant