index.js - file
<AppProvider>
<BrowserRouter>
<div>
<Route exact path="/" component={Home} />
<Route exact path="/balances" component={Balances} />
</div>
</BrowserRouter>
</AppProvider>
On Home Component, I have a button and its event click was send to App Provider successfully.
<button className="btn btn-primary">{context.Process_ToBalances}</button>
And on AppProvider, I have a method like this.
Process_ToBalances()
{
//pre process data
// Redirect to Balance page here
}
ButI have no idea why all the redirection method failed.
I tried both of browserHistory.push('/Balances')
and this.props.push("/Balances")
but still failed.