# FindJob **Repository Path**: feiqp/FindJob ## Basic Information - **Project Name**: FindJob - **Description**: react、redux、react-router4、node、mongdb简单项目实现 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-05-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: React ## README # FindJob #### 项目介绍 react、redux、react-router4、node、mongdb简单项目实现 npm install -g create-react-app create-react-app my-app cd my-app npm start 高阶组件 函数式编程 函数可以当参数传递,主要功能 属性代理/反向继承 /////// demo ///////// function hello(){ console.log('say hello') } function wapperHello(fn){ return function(){ console.log('before hello') fn() console.log('after hello') } } hello = wapperHello(hello) hello() 将组件封装一层再返回来 class Hello extends Component{ render(){ return
say hello
} } function wapperHello(comp){ console.log(comp) class wap extends Component{ render(){ return (
before hello
after hello
) } } return wap } Hello = wapperHello(Hello)