I am using react-router with react js and i following their documentation but facing this error
while compiling it shows the error,
TypeError: _this.
you can use window.location.href = '/somePath' as your last resort
window.location.href = '/somePath'