Fe-interview: [react] react声明组件有哪几种方法,各有什么不同?

Created on 12 Jul 2019  ·  2Comments  ·  Source: haizlin/fe-interview

[react] react声明组件有哪几种方法,各有什么不同?

react

Most helpful comment

1、无状态组件
2、有状态组件
3、高阶组件
4、容器组件
5、回调组件
具体请看这篇文章:https://juejin.im/post/5e041c99518825123e7b0602

All 2 comments

1:函数式声明组件
2:class 类继承声明组件
3:通过react.createClass创建组件

1、无状态组件
2、有状态组件
3、高阶组件
4、容器组件
5、回调组件
具体请看这篇文章:https://juejin.im/post/5e041c99518825123e7b0602

Was this page helpful?
0 / 5 - 0 ratings