【译】Handling Events

2017-03-05
阅读 5 分钟
2k
Handling events with React elements is very similar to handling events on DOM elements. 处理React元素事件跟处理DOM元素事件很相似There are some syntactic differences:但有一下一些语法不同:React events are named using camelCase, rather than lowercase.React事件使用驼峰式命名的,而不是全小写。

【译】State and Lifecycle (State和生命周期)

2017-03-04
阅读 13 分钟
2.9k
Consider the ticking clock example from one of the previous sections.思考一下,我们之前提到过的时钟例子。So far we have only learned one way to update the UI.到目前为止,我们只学到一种更新UI的方式。We call ReactDOM.render() to change the rendered output:我们调用ReactDOM.render()的方法来改变渲染的...

【译】组件与Props

2017-02-25
阅读 8 分钟
3.5k
Components let you split the UI into independent, reusable pieces, and think about each piece in isolation.

【译】渲染Elements

2017-02-23
阅读 4 分钟
2.7k
下面是react官方文档的个人翻译,如有翻译错误,请多多指出原文地址:[链接]特别感谢Hevaen,同时也向豪大React群所有成员表示感谢,从你们身上我学到很多。注: Elements 不做翻译

【译】介绍JSX

2016-07-12
阅读 5 分钟
1.7k
下面是react官方文档的个人翻译,如有翻译错误,请多多指出原文地址:[链接]特别感谢Hevaen,同时也向豪大React群所有成员表示感谢,从你们身上我学到很多。