rr3-h3-anywhere
Version:
React router 3 + History 3
19 lines (17 loc) • 454 B
JavaScript
import { func, object, shape, string } from 'prop-types';
export var routerShape = shape({
push: func.isRequired,
replace: func.isRequired,
go: func.isRequired,
goBack: func.isRequired,
goForward: func.isRequired,
setRouteLeaveHook: func.isRequired,
isActive: func.isRequired
});
export var locationShape = shape({
pathname: string.isRequired,
search: string.isRequired,
state: object,
action: string.isRequired,
key: string
});