function withRouterimport { withRouter } from "https://dotland.deno.dev/x/aleph@v0.3.0-alpha.33/framework/react/hoc.ts"; withRouter<P>(Component: ComponentType<P>)withRouter injects the prop as current RouterURL of page routing. class MyComponent extends React.Component { render() { return <p>{this.props.router.pathname}</p> } } export default withRouter(MyComponent) Type ParametersPParametersComponent: ComponentType<P>