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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.13
    127
    • latest

Version History

Package Sidebar

Install

npm i on-location-changed

Weekly Downloads

1,508

Version

1.0.13

License

ISC

Unpacked Size

6.82 kB

Total Files

15

Last publish

Collaborators

  • kaspernj