GithubHelp home page GithubHelp logo

abell123456 / mf Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 23 KB

基于react以及redux、react-router、react-router-redux等react全家桶,采用choo:https://github.com/yoshuawuyts/choo 语法,简化redux数据流管理的轻量级框架

JavaScript 100.00%

mf's Introduction

mf

基于react以及redux、react-router、react-router-redux等react全家桶,采用choo语法,简化redux数据流管理的轻量级框架

把例子跑起来

全局安装`dora`;

没有router的版本:

$ cd examples/count
$ npm install
$ npm start
$ open http://localhost:8989/index.html

router的版本:

$ cd examples/count-router
$ npm install
$ npm start
$ open http://localhost:8989/index.html

项目由来

dva的启发,简洁的使用方式(参考了choo语法),大大减轻了使用redux时的成本。但是dva默认使用了redxu-saga,让不太熟悉generator语法的开发同学上手成本还是有点高,另一方面,对于移动端来说,Generator被Babel编译后的代码量有点大,移动端大范围使用Generator也不太合适。于是做了这版更简洁的使用自己开发的redux中间件来实现简化开发流程的版本。

TODOS

[√] 判断effects返回结果是否为promise,按照`redux-promise`规范加入`Promise`自动dispatch支持;
[√] 拆分框架为`有router`和`无router`两块,可按需引入;
[√] 为框架添加插件机制;
[√] `Loading加载`插件开发。

相关插件

1、自动Loading执行插件:mf-loading

mf's People

Contributors

abell123456 avatar

Stargazers

 avatar

Watchers

James Cloos 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.