react-history:使用React管理会话历史记录

时间:2021-05-16 04:33:29
【文件属性】:
文件名称:react-history:使用React管理会话历史记录
文件大小:26KB
文件格式:ZIP
更新时间:2021-05-16 04:33:29
JavaScript React历史 提供了使用管理会话历史的工具。 它是程序包的薄包装。 在Web浏览器中,该库还透明地管理URL的更改,这使单页应用程序的创建者更容易支持书签和后退按钮等内容。 注意:该库是高度实验性的。 安装 使用 : $ npm install --save react-history 然后,使用像这样的模块捆绑,可以像使用其他任何东西一样使用: // using ES6 modules import { BrowserHistory } from "react-history" ; // using CommonJS modules var BrowserHistory = require ( "react-history" ) . BrowserHistory ; UMD版本也可以在上: < script src =" https://unpkg.com/react
【文件预览】:
react-history-master
----.gitignore(4B)
----karma.conf.js(2KB)
----README.md(9KB)
----tests.webpack.js(97B)
----.eslintrc(353B)
----package.json(2KB)
----CONTRIBUTING.md(788B)
----.babelrc(200B)
----scripts()
--------build.js(658B)
--------release.js(2KB)
----modules()
--------HashHistory.js(1KB)
--------__tests__()
--------BrowserHistory.js(1KB)
--------Actions.js(1KB)
--------index.js(191B)
--------Prompt.js(1KB)
--------PropTypes.js(670B)
--------MemoryHistory.js(1KB)
----.npmignore(131B)
----.travis.yml(85B)
----webpack.config.js(504B)

网友评论