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

Function router

packages/dva-no-router/src/index.js:15–21  ·  view source on GitHub ↗
(router)

Source from the content-addressed store, hash-verified

13 return app;
14
15 function router(router) {
16 invariant(
17 isFunction(router),
18 `[app.router] router should be function, but got ${typeof router}`,
19 );
20 app._router = router;
21 }
22
23 function start(container) {
24 // 允许 container 是字符串,然后用 querySelector 找元素

Callers

nothing calls this directly

Calls 1

isFunctionFunction · 0.90

Tested by

no test coverage detected