@abdulghani/routerhelper 中文文档教程
Router helper component
使用配置快速设置路由器
Usage
// other imports
import Router from "@abdulghani/routerhelper";
import myRoutes from "somewhere";
// usage
const RouteApp = () => {
return (
<Router routes={myRoutes} fallback={<>Please Wait</>}>
)
}
// fallback are optional
路由 prop
是这些对象的数组
- path
- exact
- component (able to use react lazy for lazy loading)
Router helper component
to setup router with config quickly
Usage
// other imports
import Router from "@abdulghani/routerhelper";
import myRoutes from "somewhere";
// usage
const RouteApp = () => {
return (
<Router routes={myRoutes} fallback={<>Please Wait</>}>
)
}
// fallback are optional
routes prop
are array of these object
- path
- exact
- component (able to use react lazy for lazy loading)
更多
你可能也喜欢
- 1game-texas-holdem 中文文档教程
- @1hive/deployments-aragon-shared 中文文档教程
- @1stquad/react-bootstrap-datetimepicker 中文文档教程
- @2003scape/rsc-data 中文文档教程
- @21torr/firefly 中文文档教程
- @51nodes/decentralized-schema-registry 中文文档教程
- @8base/web-utils 中文文档教程
- @_pearofducks/require-extension-hooks-vue 中文文档教程
- @aabegg/websocket 中文文档教程
- @aadityasiva/n-c-c 中文文档教程