on-location-changed

1.0.13 • 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")
}

Dependents (2)

Package Sidebar

Install

npm i on-location-changed

Weekly Downloads

1,571

Version

1.0.13

License

ISC

Unpacked Size

6.82 kB

Total Files

15

Last publish

Collaborators

  • kaspernj