1.0.18 • Published 5 months ago
on-location-changed v1.0.18
Installation
import {callbacksHandler} from "on-location-changed/build/callbacks-handler"
callbacksHandler.connectReactRouterHistory(history)
Usage
import WithCustomPath from "on-location-changed/build/with-custom-path"
<WithCustomPath path={somePath}>
<App />
</WithCustomPath>
<WithLocationPath>
<App />
</WithLocationPath>
import usePath from "on-location-changed/build/use-custom-path"
const path = usePath()