随笔分类 -  React

React & Redux and so on.
摘要:You are currently using minified code outside of NODE_ENV 'production'. This means that you are running a slower development build of Redux. You can u 阅读全文
posted @ 2022-04-28 18:02 SKILL·NULL 阅读(1768) 评论(0) 推荐(0) 编辑
摘要:众所周知,在项目中如果在资源加载请求还未完成的时候,由于阻塞机制,会出现首页白屏的问题,产生很差的用户体验。本文以react为例,提供一个解决方法。 解决原理:使用 onreadystatechange 去监听 readyState,在资源加载完成之前加载一个只有框架的静态页面,页面不请求数据。当数 阅读全文
posted @ 2017-12-06 18:09 SKILL·NULL 阅读(6699) 评论(0) 推荐(0) 编辑
摘要:一、React.createClass 跟 React.Component 的区别在于后者使用了ES6的语法,用constructor构造器来构造默认的属性和状态。 1. React.createClass import React from 'react'; const Contacts = Re 阅读全文
posted @ 2017-11-24 13:49 SKILL·NULL 阅读(326) 评论(0) 推荐(0) 编辑
摘要:react-router 3 文档: https://github.com/ReactTraining/react-router/blob/v3/docs/API.md react-router 4 文档: https://reacttraining.com/react-router 1. reac 阅读全文
posted @ 2017-11-24 11:36 SKILL·NULL 阅读(3960) 评论(0) 推荐(0) 编辑
摘要:| | | | | React & Redux | | | | | Project | |-- node_modules | | | |-- react | | | |-- react-dom | | | |-- react-router | | | |-- react-redux => redux 阅读全文
posted @ 2017-11-21 14:00 SKILL·NULL 阅读(1284) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示