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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i on-location-changed

    Weekly Downloads

    1,562

    Version

    1.0.13

    License

    ISC

    Unpacked Size

    6.82 kB

    Total Files

    15

    Last publish

    Collaborators

    • kaspernj