@cpro-js/history-ui5
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@cpro-js/history-ui5

ui5 compatible implementation of react router's hash history implementation

Supports the following versions:

  • react-router v5
  • history v4

Installation

$ yarn add @cpro-js/history-ui5

Usage

Create your own instance of history

import { createUI5History } from "@cpro-js/history-ui5";

const ui5History = createUI5History();

and pass it to react-routers Router component:

import { Route, Router, Switch } from "react-router-dom";

export default function App() {
  return (
    <Router history={ui5History}>
      {/* Your code */}
    </Router>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @cpro-js/history-ui5

Weekly Downloads

2

Version

4.0.0

License

MIT

Unpacked Size

86.3 kB

Total Files

14

Last publish

Collaborators

  • texttechne
  • zinserjan