React 编程风格指南

2015-10-24
阅读 2 分钟
10.1k
生命周期方法(按照时间先后顺序依次为: getDefaultProps, getInitialState, componentWillMount, componentDidMount, componentWillReceiveProps, shouldComponentUpdate, componentWillUpdate, componentDidUpdate, componentWillUnmount )

[译]在 React.js 中使用 ES6+

2015-09-13
阅读 5 分钟
10.5k
在今年对 Instagram Web 进行全新的设计的时候,我喜欢在写 React 组件的时候,用上一些 ES6+ 的新特性。请允许我列举这些能够改变你写 React 应用方式的新特性。比起以往,这些特性能够使你撸起码来更加容易、有趣!

『译』React Mixin 的使用

2015-07-24
阅读 5 分钟
34.5k
我使用 React.js 构建大型项目已经有一段时间了,我遇到过很多在不同的组件中都要用到相同功能的情况。因此,我花了一个小时左右的时间去了解mixin的用法,然后分享我所学习到的一些东西。