![240](https://cdn2.jianshu.io/assets/default_avatar/1-04bbeead395d74921af6a4e8214b4f61.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
IP属地:上海
1、高阶组件是一个函数,接受一个组件作为参数,返回一个新的组件。新的组件使用传入的组件作为子组件。1.1、高阶组件的作用其实不言而喻,其实就是为...
function foo(){ ...
function obj() {return {x:5}};function mon({x=0,y=0}=obj()){return [x,y]...
//箭头函数表示function foo(){console.log(this.id);return ()=>{console.log(this...