MCPcopy
hub / github.com/dvajs/dva / router

Function router

packages/dva/src/index.js:36–42  ·  view source on GitHub ↗
(router)

Source from the content-addressed store, hash-verified

34 return app;
35
36 function router(router) {
37 invariant(
38 isFunction(router),
39 `[app.router] router should be function, but got ${typeof router}`,
40 );
41 app._router = router;
42 }
43
44 function start(container) {
45 // 允许 container 是字符串,然后用 querySelector 找元素

Callers

nothing calls this directly

Calls 1

isFunctionFunction · 0.90

Tested by

no test coverage detected