MCPcopy
hub / github.com/dvajs/dva

github.com/dvajs/dva @dva-react-router-3@1.2.1 sqlite

repository ↗ · DeepWiki ↗ · release dva-react-router-3@1.2.1 ↗ · compare 2 versions
243 symbols 500 edges 102 files 7 documented · 3%
README

English | 简体中文

dva

NPM version Build Status Coverage Status NPM downloads Dependencies Join the chat at https://gitter.im/dvajs/Lobby

基于 reduxredux-sagareact-router 的轻量级前端框架。(Inspired by elm and choo)


特性

  • 易学易用,仅有 6 个 api,对 redux 用户尤其友好,配合 umi 使用后更是降低为 0 API
  • elm 概念,通过 reducers, effects 和 subscriptions 组织 model
  • 插件机制,比如 dva-loading 可以自动处理 loading 状态,不用一遍遍地写 showLoading 和 hideLoading
  • 支持 HMR,基于 babel-plugin-dva-hmr 实现 components、routes 和 models 的 HMR

快速上手

更多文档,详见:https://dvajs.com/

他是怎么来的?

例子

FAQ

命名由来?

D.Va拥有一部强大的机甲,它具有两台全自动的近距离聚变机炮、可以使机甲飞跃敌人或障碍物的推进器、 还有可以抵御来自正面的远程攻击的防御矩阵。

—— 来自 守望先锋

是否可用于生产环境?

当然!公司内用于生产环境的项目估计已经有 1000+ 。

是否支持 IE8 ?

不支持。

下一步

以下能帮你更好地理解和使用 dva :

还要了解更多?

社区

微信群

注:群满 100 人后,可加 sorryccpro 备注 dva 邀请加入。

Telegram

https://t.me/joinchat/G0DdHw9tDZC-_NmdKY2jYg

License

MIT

Extension points exported contracts — how you extend this code

onActionFunc (Interface)
(no doc)
packages/dva-no-router/index.d.ts
onActionFunc (Interface)
(no doc)
packages/dva/index.d.ts
ReducerEnhancer (Interface)
(no doc)
packages/dva-no-router/index.d.ts
ReducerEnhancer (Interface)
(no doc)
packages/dva/index.d.ts
Hooks (Interface)
(no doc)
packages/dva-no-router/index.d.ts
Hooks (Interface)
(no doc)
packages/dva/index.d.ts
EffectsCommandMap (Interface)
(no doc)
packages/dva-no-router/index.d.ts
EffectsCommandMap (Interface)
(no doc)
packages/dva/index.d.ts

Core symbols most depended-on inside this repo

create
called by 58
packages/dva-core/src/index.js
put
called by 43
packages/dva-core/src/getSaga.js
use
called by 17
packages/dva-core/src/Plugin.js
get
called by 13
packages/dva-core/src/Plugin.js
createLoading
called by 9
packages/dva-loading/src/index.js
apply
called by 6
packages/dva-core/src/Plugin.js
isFunction
called by 6
packages/dva-core/src/utils.js
prefixType
called by 5
packages/dva-core/src/prefixType.js

Shape

Function 203
Interface 22
Method 11
Class 7

Languages

TypeScript100%

Modules by API surface

packages/dva-core/test/effects.test.js17 symbols
packages/dva-core/test/optsAndHooks.test.js13 symbols
packages/dva/src/dynamic.js11 symbols
packages/dva/index.d.ts11 symbols
packages/dva-no-router/index.d.ts11 symbols
packages/dva/src/index.js10 symbols
packages/dva-core/src/getSaga.js10 symbols
packages/dva-react-router-3/src/index.js9 symbols
packages/dva-core/src/index.js9 symbols
packages/dva-core/src/Plugin.js9 symbols
packages/dva-loading/test/index.test.js7 symbols
examples/user-dashboard/src/pages/users/models/users.js7 symbols

Dependencies from manifests, versioned

@babel/cli7.0.0-beta.46 · 1×
@babel/core7.0.0-beta.46 · 1×
@babel/plugin-transform-runtime7.0.0-beta.46 · 1×
@babel/preset-env7.0.0-beta.46 · 1×
@babel/preset-react7.0.0-beta.46 · 1×
@babel/preset-stage-07.0.0-beta.46 · 1×
@babel/runtime7.0.0-beta.46 · 1×
@types/isomorphic-fetch0.0.34 · 1×
@types/react-router-dom4.2.7 · 1×
@types/react-router-redux5.0.13 · 1×
babel-eslint8.0.2 · 1×
babel-plugin-dva-hmr0.3.2 · 1×

For agents

$ claude mcp add dva \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact