Coder Social home page Coder Social logo

redux-async-demo's Introduction

最近在研究 redux 异步流,看了一些文章,都只是理论上的理解,自己动手实践一遍,才能理解地更深刻~~~

一、说明

redux-async-demo:最开始的基础版本

redux-router-v4-demo:在 redux-async-demo 的基础上对路由进行了更改

03_redux-router-v4-optimize:在 redux-router-v4-demo 的基础上对模块结构进行了优化,分离了业务组件和纯组件,提高组件复用性,模块结构更加清晰。

二、用到的技术(-> package.json):

"antd": "^2.12.8",
"axios": "^0.16.2",
"react": "^15.3.2",
"react-dom": "^15.3.2",
"react-redux": "^5.0.5",
"react-router-dom": "^4.1.1",
"redux": "^3.7.2",
"redux-logger": "^3.0.6",
"redux-saga": "^0.15.3",
"redux-thunk": "^2.2.0"

三、主要实现的功能:

  1. react-router4 实现路由切换
  2. redux-thunk 异步加载数据
  3. redux-saga 异步加载数据

四、参考:

1) webpack-react 脚手架采用了之前的demo:react_webpack\_scaffold

2)页面样式参考了 react-antd-demo

3)react router 4

请参考我的博文: React Router 4:痛过之后的豁然开朗

4)对 redux 异步流的详细介绍请参考我的博文:聊一聊 redux 异步流之 redux-saga

5)对项目的梳理请参考我的博文:React技术栈整套工程化流程

redux-async-demo's People

Contributors

rukiq avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.