随笔分类 - React之路
react知识点
摘要:github仓库地址:https://github.com/wanghao12345/react-book 简介 我们在使用redux中的combineReducers用来分离reducer后,如果组件去访问数据时,需要访问多一层属性,为了将访问这一层属性的方式变成使用函数进行访问。这里就可以使用r
阅读全文
摘要:github仓库地址:https://github.com/wanghao12345/react-book 简介 immutable可以将store中的数据封装成一个immutable对象,这个对象拥有get,set等方法,这样就可以通过这些方法对store中的数据进行管理 使用 1.安装immut
阅读全文
摘要:github仓库地址:https://github.com/wanghao12345/react-book 使用constants constants主要是用来管理一些固定的常量,在功能模块下的store新建constants.js文件。内容如下: 使用actionCreators 最开始在使用ma
阅读全文
摘要:github仓库地址:https://github.com/wanghao12345/react-book 背景 如果一个项目,比较大,需要redux存储的状态数据比较多时,reducer.js无疑是会非常臃肿的。所以为了简化reducer.js文件,我们应该按照功能模块将这个大的reducer.j
阅读全文
摘要:github仓库地址:https://github.com/wanghao12345/react-book 简介 redux主要是用来记录数据状态,然后共享数据。每个react组件都可以获取该数据库中的数据,也可以改变该数据库中的数据。 引入redux 项目目录下的控制台输入: yarn add r
阅读全文
摘要:github仓库地址:https://github.com/wanghao12345/react-book 这里主要讲解使用react-transition-group里面的CSSTransition实现动画。 使用CSSTransition实现动画,一共分三步: 1.引用CSSTransition
阅读全文
浙公网安备 33010602011771号