Socket
Book a DemoInstallSign in
Socket

@cpro-js/history-ui5

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cpro-js/history-ui5

> ui5 compatible implementation of react router's hash history implementation

latest
npmnpm
Version
4.0.0
Version published
Maintainers
1
Created
Source

@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>
  );
}

FAQs

Package last updated on 10 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts