on-location-changed

1.0.12 • Public • Published

Installation

import {callbacksHandler} from "on-location-changed/callbacks-handler"

callbacksHandler.connectReactRouterHistory(history)

Usage

const {LocationChanged} = require("on-location-changed/location-changed-component")
<LocationChanged onChanged={this.onLocationChanged} />
onLocationChanged = () => {
  console.log("The location was changed")
}

Readme

Keywords

Package Sidebar

Install

npm i on-location-changed

Weekly Downloads

1,081

Version

1.0.12

License

ISC

Unpacked Size

6.6 kB

Total Files

15

Last publish

Collaborators

  • kaspernj