随笔分类 -  react简书项目https://coding.imooc.com/class/229.html

对慕课网react简书项目的记录
摘要:PureComent: 当props或者state改变时,PureComponent将对props和state进 行浅比较。而Component不会比较当前和下个状态的props和state。 因此,每当shouldComponentUpdate被调用时,组件默认的会重新渲染。 immutable: 阅读全文
posted @ 2020-03-17 06:53 ladybug7 阅读(132) 评论(0) 推荐(0)
摘要:详解请参考:https://github.com/redux-saga/redux-saga and https://redux-saga.js.org/docs/introduction/BeginnerTutorial.html store/index.js import { createSto 阅读全文
posted @ 2020-03-13 08:29 ladybug7 阅读(163) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-12 12:32 ladybug7 阅读(109) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-10 21:08 ladybug7 阅读(118) 评论(0) 推荐(0)
摘要:首先到应用商店下载: 然后在创建store的语句里添加一个配置: window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() 阅读全文
posted @ 2020-03-10 16:42 ladybug7 阅读(116) 评论(0) 推荐(0)
摘要:https://ant.design/index-cn import React from 'react'; import { Input, Button, List } from 'antd'; const TodoListUI = (props) => ( <div style={{ margi 阅读全文
posted @ 2020-03-10 08:09 ladybug7 阅读(163) 评论(0) 推荐(0)
摘要:https://reactcommunity.org/react-transition-group/ 阅读全文
posted @ 2020-03-10 07:41 ladybug7 阅读(101) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-07 10:37 ladybug7 阅读(177) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-07 08:46 ladybug7 阅读(85) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-06 10:43 ladybug7 阅读(177) 评论(0) 推荐(0)
摘要:深度解析请移步: https://reactjs.org/docs/reconciliation.html#recursing-on-children 阅读全文
posted @ 2020-03-05 17:56 ladybug7 阅读(118) 评论(0) 推荐(0)
摘要:如果总是在构造函数中绑定this指向,惹恼了你。可以使用下面两种不是很推荐的方式。 1. 2. You have to be careful about the meaning of this in JSX callbacks. In JavaScript, class methods are no 阅读全文
posted @ 2020-03-05 16:56 ladybug7 阅读(445) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-05 11:43 ladybug7 阅读(960) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-05 11:37 ladybug7 阅读(212) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-05 11:01 ladybug7 阅读(73) 评论(0) 推荐(0)
摘要:// PWA progressive web application // 使浏览器可以存储https协议服务器上的webapp项目,断网的时候仍然可以离线访问 import * as serviceWorker from './serviceWorker'; 阅读全文
posted @ 2020-03-05 10:58 ladybug7 阅读(183) 评论(0) 推荐(0)
摘要:首先安装create-react-app: npm install create-react-app -g 然后用create-react-app脚手架创建一个项目: create-react-app my-app 最后进入到my-app通过npm start运行项目: cd my-app npm 阅读全文
posted @ 2020-03-04 12:45 ladybug7 阅读(115) 评论(0) 推荐(0)
摘要:注:React VR 可以编写全景用 官网地址https://reactjs.org/ 学习前可以先将Docs部分阅读一遍:https://reactjs.org/docs/getting-started.html 阅读全文
posted @ 2020-03-04 12:18 ladybug7 阅读(118) 评论(0) 推荐(0)