@cpro-js/history-ui5
v4.0.0
Published
> ui5 compatible implementation of react router's hash history implementation
Downloads
4
Readme
@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>
);
}