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

Function router

packages/dva-react-router-3/src/index.js:37–43  ·  view source on GitHub ↗
(router)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isFunctionFunction · 0.90

Tested by

no test coverage detected