React 学习笔记
1.React.createElement(arg1, arg2, arg3) 前三个参数分别为类型,props,children
参考地址: Introducing JSX – React (reactjs.org)

2.继承React.Component的Class必须有render方法,每次调用setState方法后,后悔重新出发render方法。
3.自定义组件(user-defined component),方法组件(function)和类(class)组件首字母必须大写。

4.html标签中class属性写为className,
5.state和props同时更新,需要注意

6.Fragment

7.ref最好不要用字符串,效率比较低。

8.React.lazy

9.keyboard event

10.Mouse event

11.Focus Event

12.Form Event

13.select event

浙公网安备 33010602011771号