Redirect to another site, react?

Good day! Please tell me how in this case to do a redirect to another site?
ReactDom.render(
 role ?
 <provider store="{store}">
 <connectedrouter history="{history}">
<app>
</app></connectedrouter>
 </provider> : <norole url="{newUrl}/">,
document.getElementById('main'),
 );</norole>


NoRole now trying to pass url in componentDidMount trying to write
window.location = this.props.url;
but the page just peretiraetsya.
Please tell me how in this case the right to do this redirect?
Thank you!
June 8th 19 at 17:19

Find more questions by tags JavaScriptReactRedux