import * as React from 'react'; import { UIView, UIViewInjectedProps } from '@uirouter/react'; export class Child extends React.Component { uiCanExit = () => { return Promise.resolve(); }; componentDidMount() { console.log('mounted'); } handleClick = () => { this.props.transition.router.stateService.reload(); }; render() { return (

Child

); } }