轻量级JS框架 dva

码农软件 · 软件分类 · JavaScript MVC 框架 · 2019-03-15 11:43:11

软件介绍

基于React和Redux的树型结构轻量级JS框架,(灵感来自Choo).

特点:

  • 基于 redux, redux-saga and react-router: 站在巨人的肩膀上。

  • small api: 仅5个api方法,很容易学习。

  • elm cocepts: 基于reducers,effects和subscriptions的组织模型。

  • 支持mobile and react-native: 跨开台

  • 动态 model and router: 拆分大型应用程序和负载的需求

  • plugin system: 可扩展dva

  • hmr support with babel-plugin-dva-hmr

简单使用方法:

import dva, { connect } from 'dva';

// 1. Create app
const app = dva();

// 2. Add plugins (optionally)
app.use(plugin);

// 3. Register models
app.model(model);

// 4. Connect components and models
const App = connect(mapStateToProps)(Component);

// 5. Config router with Components
app.router(routes);

// 6. Start app
app.start('#root');

本文地址:https://codercto.com/soft/d/1394.html

Tagging

Tagging

Gene Smith / New Riders / 2007-12-27 / GBP 28.99

Tagging is fast becoming one of the primary ways people organize and manage digital information. Tagging complements traditional organizational tools like folders and search on users desktops as well ......一起来看看 《Tagging》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具