摘要: 1. src 下的 common 下的 header 创建 store 文件夹 下创建 reducer.js # src/common/header/store/reducer.js const stateDefault = { focused : false }; export default ( 阅读全文
posted @ 2019-12-04 19:04 zonehoo 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 1. 添加动态效果组件 yarn add react-transition-group 2. 修改 src/common/header/index.js import React, {Component} from 'react'; import {CSSTransition} from 'reac 阅读全文
posted @ 2019-12-04 16:29 zonehoo 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 1. 访问 iconfont 并注册 登陆 2. 进入 iconfont 头部 图标管理->我的项目 3. 点击右边的文件夹 + 号 图标 创建我的项目 输入项目名称即可 4.在 搜索框 搜索 '放大镜' 三个字 5.找到合适的图标 点击添加入库 6.点击右上角的购物车 -> 添加到项目 选择 项目 阅读全文
posted @ 2019-12-04 14:35 zonehoo 阅读(1149) 评论(1) 推荐(0) 编辑
摘要: 1. 在 src 下 创建 common 文件下 创建 header 文件夹下 创建 index.js #src/common/header/index.js import React, {Component} from 'react'; import { HeaderWrapper, Logo, 阅读全文
posted @ 2019-12-04 10:53 zonehoo 阅读(2720) 评论(0) 推荐(0) 编辑