摘要: 定义:高阶组件就是一个函数,且该函数接受一个组件作为参数,并返回一个新的组件。A higher-order component is a function that takes a component and returns a new component.函数模拟高... 阅读全文
posted @ 2018-04-10 19:52 进阶之路-前端 阅读(1273) 评论(0) 推荐(0) 编辑
摘要: ESLint 是一个代码规范和错误检查工具,有以下几个特性所有东西都是可以插拔的。你可以调用任意的rule api或者formatter api 去打包或者定义rule or formatter。任意的rule 都是独立的没有特定的coding style,你可以自己... 阅读全文
posted @ 2018-04-10 16:29 进阶之路-前端 阅读(257) 评论(0) 推荐(0) 编辑