Giter VIP home page Giter VIP logo

dva-demo's Introduction

dva-demo

dva + dva-loading + redux-actions + react-router-redux + axios ajax请求实例

总结体会

  • dva是个框架,并不是库,简单理解:dva = React-Router + Redux + Redux-saga
  • 实际功能模块的开发,就是 配置路由 + UI Component + Model + connect
  • 知识点包括action、reducers、effects等概念的理解和他们之间的联系,以及subscriptions、connect等。
  • model模块导入,统一入口,使用webpack require.context 技术。
  • app = dva(opts),对dva实例,可配置属性,如:initialState、history、onAction、extraReducers、onEffect等的学习。
  • dva-loading插件、redux-logger中间件、redux-actions库、react-router-redux库等的运用;
  • 路由跳转方式的总结,包括react跳转方法,和在effects中运用react-router-redux库的push方法进行跳转等。
  • axios ajax请求实例,简单的体会dva开发一个功能模块的大体流程。

参考

dva-demo's People

Contributors

hongzelin avatar

Watchers

 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.