网易云搭建

项目是掘金小册的React Hooks 与 Immutable 数据流实战

项目链接:https://juejin.im/book/5da96626e51d4524ba0fd237/section/5da967b66fb9a04df9019bfe

一、项目用到的技术栈:

1、react(包括react-router)

react router文档:http://react-guide.github.io/react-router-cn/docs/Introduction.html

2、redux:js状态管理容器

官方文档:https://www.redux.org.cn/

3、redux-thunk:处理异步逻辑的redux中间件

4、styled-components:css in js的前端工程化神器

简单用法:https://www.jianshu.com/p/2d5f037c7df9

官方文档: https://styled-components.com/docs/basics#motivation 

5、不用class组,统一用函数组件hooks

hooks简介:https://www.jianshu.com/p/76901410645a

6、默认样式及字体图标的准备

使用的是styled-components进行开发,快速上手文档在这里:https://www.jianshu.com/p/2d5f037c7df9

官方文档在这里: https://styled-components.com/docs/basics#motivation

7、字体图标文件的引入

采用阿里图标库:https://www.iconfont.cn/

图标库的引用采用unicode模式,引用步骤上手文档:https://www.jianshu.com/p/cb97be966e98

其它: 

在使用【create-react-app】这个指令之前,记得先安装它,【npm install -g create-react-app】。如果报错了,可能是没有权限,自己百度。

 

猜你喜欢

转载自www.cnblogs.com/qingshanyici/p/12219273.html