:upwards_button: 用于 React 的 UI-Router

时间:2021-06-08 16:45:03
【文件属性】:
文件名称::upwards_button: 用于 React 的 UI-Router
文件大小:476KB
文件格式:ZIP
更新时间:2021-06-08 16:45:03
Router UI-Router-React UI-Router 为 React 生态系统提供了极其灵活的、基于状态的路由。 当用户浏览应用程序时,SPA 的路由框架会更新浏览器的 URL。 相反,这允许更改浏览器的 URL 以驱动通过应用程序的导航,从而允许用户创建指向 SPA 深处位置的书签。 UI-Router 应用程序被建模为一个分层的状态树。 UI-Router 提供了一个状态机,以类似事务的方式管理这些应用程序状态之间的转换。 文档和资源 教程和文档示例 UI-Router 网站 Changelog 从 0.3.x 升级到 0.4.x 入门 UI-Router 包使用节点包管理器 npm 分发。 yarn add @uirouter/react 将 UIRouter 导入你的项目,定义一些状态,你就可以开始了! 从“React”导入React; 从 'react-dom' 导入 ReactDOM; 从'@uirouter/react'导入{ UIRouter, UIView, pushStateLocationPlugin }; 从'./components/Home'导入Home; /
【文件预览】:
react-master
----.prettierignore(82B)
----.gitignore(103B)
----tsconfig.json(424B)
----typedoc.json(153B)
----README.md(2KB)
----logo()
--------logo.png(118KB)
----CHANGELOG.md(46KB)
----.github()
--------stale.yml(808B)
--------workflows()
----DOCS.md(2KB)
----tsconfig.jest.json(118B)
----.mergify.yml(492B)
----docs()
--------README.md(169B)
--------upgrading-from-0.3.x-to-0.4.x.md(4KB)
--------API.md(23KB)
----examples()
--------README.md(26B)
--------typescript()
--------animating-transitions()
----artifacts.json(86B)
----LICENSE(1KB)
----jest.setup.js(129B)
----package.json(4KB)
----src()
--------components()
--------interface.tsx(10KB)
--------__tests__()
--------core.ts(2KB)
--------reactViews.tsx(2KB)
--------index.ts(491B)
--------hooks()
----tsconfig.docgen.json(221B)
----.babelrc(36B)
----downstream_projects.json(78B)
----.prettierrc.json(73B)
----.npmignore(163B)
----webpack.config.js(889B)
----yarn.lock(381KB)

网友评论