(this), false);
window.addEventListener('hashchange', this.updateView.bind(this), false);
}
}
routes...(window.location.pathname);
});
window.addEventListener('load', () => this.updateView('/'), false...setTimeout(() => {
history.pushState({}, null, '/about');
router.updateView('/about');
}, 2000);..., false);
}
componentWillUnmount() {
window.removeEventListener('hashchange', this.updateView..., false);
}
updateView = () => {
this.forceUpdate();
}
render() {
const { path, exact