ReactDom.render(
role ?
<provider store="{store}">
<connectedrouter history="{history}">
<app>
</app></connectedrouter>
</provider> : <norole url="{newUrl}/">,
document.getElementById('main'),
);</norole>
window.location = this.props.url;
Find more questions by tags JavaScriptReactRedux