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

上传者: 42132359 | 上传时间: 2022-11-30 10:06:55 | 文件大小: 26KB | 文件类型: ZIP
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

文件下载

资源详情

[{"title":"( 42 个子文件 26KB ) react-history:使用React管理会话历史记录","children":[{"title":"react-history-master","children":[{"title":".gitignore <span style='color:#111;'> 4B </span>","children":null,"spread":false},{"title":"karma.conf.js <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 9.17KB </span>","children":null,"spread":false},{"title":"tests.webpack.js <span style='color:#111;'> 97B </span>","children":null,"spread":false},{"title":".eslintrc <span style='color:#111;'> 353B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"CONTRIBUTING.md <span style='color:#111;'> 788B </span>","children":null,"spread":false},{"title":".babelrc <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"scripts","children":[{"title":"build.js <span style='color:#111;'> 658B </span>","children":null,"spread":false},{"title":"release.js <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false}],"spread":true},{"title":"modules","children":[{"title":"HashHistory.js <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"__tests__","children":[{"title":".eslintrc <span style='color:#111;'> 108B </span>","children":null,"spread":false},{"title":"MemoryHistory-test.js <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"HashHistory-test.js <span style='color:#111;'> 4.24KB </span>","children":null,"spread":false},{"title":"RenderTestSequences","children":[{"title":"ReplaceNewLocation.js <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"ReplaceChangesTheKey.js <span style='color:#111;'> 937B </span>","children":null,"spread":false},{"title":"PopNewLocation.js <span style='color:#111;'> 603B </span>","children":null,"spread":false},{"title":"PromptBlocksAReplace.js <span style='color:#111;'> 661B </span>","children":null,"spread":false},{"title":"ReplaceAction.js <span style='color:#111;'> 419B </span>","children":null,"spread":false},{"title":"HashBangHashEncoding.js <span style='color:#111;'> 619B </span>","children":null,"spread":false},{"title":"PromptBlocksAPush.js <span style='color:#111;'> 652B </span>","children":null,"spread":false},{"title":"InactivePromptAllowsAPush.js <span style='color:#111;'> 724B </span>","children":null,"spread":false},{"title":"PromptBlocksTheBackButton.js <span style='color:#111;'> 862B </span>","children":null,"spread":false},{"title":"PopAction.js <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"PromptBlocksTheForwardButton.js <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"createRenderProp.js <span style='color:#111;'> 369B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 870B </span>","children":null,"spread":false},{"title":"PushAction.js <span style='color:#111;'> 410B </span>","children":null,"spread":false},{"title":"PushWithStateUsesAKey.js <span style='color:#111;'> 568B </span>","children":null,"spread":false},{"title":"NoSlashHashEncoding.js <span style='color:#111;'> 735B </span>","children":null,"spread":false},{"title":"PushNewLocation.js <span style='color:#111;'> 482B </span>","children":null,"spread":false},{"title":"SlashHashEncoding.js <span style='color:#111;'> 615B </span>","children":null,"spread":false}],"spread":false},{"title":"BrowserHistory-test.js <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false}],"spread":true},{"title":"BrowserHistory.js <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"Actions.js <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 191B </span>","children":null,"spread":false},{"title":"Prompt.js <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"PropTypes.js <span style='color:#111;'> 670B </span>","children":null,"spread":false},{"title":"MemoryHistory.js <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false}],"spread":true},{"title":".npmignore <span style='color:#111;'> 131B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 85B </span>","children":null,"spread":false},{"title":"webpack.config.js <span style='color:#111;'> 504B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明