没有合适的资源?快使用搜索试试~ 我知道了~
slox:slox react路由器
共26个文件
ts:16个
tsx:4个
json:2个
需积分: 5 0 下载量 100 浏览量
2021-03-22
15:36:46
上传
评论
收藏 22KB ZIP 举报
温馨提示
斯洛克斯 基于React的轻量的路由管理模块,具备组件式中间件能力。 安装 $ npm i slox 用法 创建一个应用服务。 const { bootstrap , createNotFoundComponent } = createServer ( document . getElementById ( 'root' ) ) ; createNotFoundComponent ( request => { return < div> not found: { request . pathname } < / div > } ) bootstrap ( 'popstate' ) ; createServer(元素:HTMLElement,组件?:TComponent []) 创建服务 参数: element components组件:必须为IOC组件,同时必须携带contro
资源推荐
资源详情
资源评论
收起资源包目录
slox-main.zip (26个子文件)
slox-main
rollup.config.js 499B
package.json 1KB
index.html 364B
src
annotates
parameterMetaCreator.ts 3KB
classMetaCreator.ts 2KB
methodMetaCreator.ts 2KB
metaDataScaner.ts 3KB
index.ts 146B
decorators
controller.ts 206B
middleware.ts 699B
component.ts 2KB
index.ts 88B
root.tsx 2KB
history.tsx 2KB
request.ts 3KB
promise.ts 898B
index.tsx 2KB
main.tsx 4KB
state.ts 501B
router
node.ts 4KB
decode.ts 3KB
index.ts 15KB
tsconfig.json 696B
.gitignore 375B
vite.config.ts 265B
README.md 2KB
共 26 条
- 1
资源评论
WillisWang
- 粉丝: 22
- 资源: 4701
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功