react
我们一起学前端
这个作者很懒,什么都没留下…
展开
-
react-native如何动态引用本地图片
一、创建一个图片引用模块二、使用图片引用模块翻译 2020-02-29 19:50:11 · 871 阅读 · 1 评论 -
redux&react-redux入门总结
第一部分:redux实战说明:①创建store import {createStore} from 'redux' const store = createStore(); export default store;②创建reducer const defaultState = { name:'lj', value:18 } export default (s...原创 2020-02-12 20:54:15 · 170 阅读 · 0 评论 -
redux笔记
一、redux全息图上图说明:第一次调用是指产生store对象的时候调用的,然后初始化state反复调用是更新的时候(store.dispatch),返回新的state二、概要说明①核心的store,通过一个函数createStore产生一个store,需要一个reducer函数作为参数②reducer函数的作用:根据当前state和传入的action,返回一个新的state③修...原创 2019-07-09 07:29:33 · 218 阅读 · 0 评论 -
react常用知识点备忘
待完善原创 2019-07-06 16:46:00 · 179 阅读 · 0 评论 -
开发管理系统的总结
一、react默认是不支持less的,这里有一个比较好的方式。在修改自定义主题的时候,可以使得react支持less原创 2019-07-29 20:29:30 · 410 阅读 · 0 评论 -
reactrouter使用注意
当this.props.history.push(’/login’)无法使用时解答:只有<Route>包裹的组件才有this.props.history;但是非<Route>包裹的需要使用可以这样处理import {withRouter} from 'react-router-dom'然后将当前组件使用withRoute包裹一下export default with...原创 2019-08-22 20:46:36 · 87 阅读 · 0 评论