React开发整理
更新日期:
从2017年年中开始学习使用Reactjs, 在公司项目开发几个数据管理类的项目, 对React算是很熟悉了。但后来又做其它项目, React相关的知识忘的差不多了, 最近又得使用, React的版本从开始使用的15升级到16了, 依赖的三方库也在升级, 以前学习的东西没有整理现在又得再过一次了。
最开始项目使用到了下面的一些库,项目框架是从ant-design的项目实战开始的。 很佩服阿里的人,开源了不少框架。
- React https://reactjs.org/
- ant-design https://ant.design/docs/react/introduce-cn
- react-router
- react-redux
- dvajs https://github.com/dvajs/dva
- dorajs
- ant-tool
- umijs https://github.com/umijs/umi
有用的工具
列了下nodejs开发中会用到的一些工具或者库, 作为开发收藏夹,不定期更新。
- nodejs https://nodejs.org/
- React https://reactjs.org/
- Vue https://cn.vuejs.org/
- npm
- yarn https://yarnpkg.com/
- npx
- babel https://babeljs.io/
- webpack https://webpack.js.org/
- parcel https://parceljs.org/
- rollup https://www.rollupjs.com/guide/zh
- lerna https://lernajs.io/
- hexo https://hexo.io/
- tarojs https://nervjs.github.io/taro/docs/composition.html
- TypeScript 入门教程 https://ts.xcatliu.com/
- ECMAScript 6 入门 http://es6.ruanyifeng.com/
React 中新增的功能
- React.Fragement https://reactjs.org/docs/fragments.html
- React.createContext() https://zhuanlan.zhihu.com/p/34038469
- React v16.6.0: lazy, memo and contextType https://reactjs.org/blog/2018/10/23/react-v-16-6.html
- 用React.lazy和Suspense优化React代码打包 https://505779.kuaizhan.com/86/82/p5836625940ac61
一些三方库
- memoizeone 缓存上一次调用结果 https://zhuanlan.zhihu.com/p/37913276 https://github.com/alexreardon/memoize-one
- moment 时间操作函数 https://momentjs.com/