Its been hours I am not finding a way or any good documentation which can show me how to navigate to any page programmatically. Here is my use case: I have a login form, as soon as user login successfully, they should navigate to the account page, so I am trying to do this redirection from my actions, here is my code (Note: I am using typescript):
Its been hours I am not finding a way or any good documentation which can show me how to navigate to any page programmatically. Here is my use case: I have a login form, as soon as user login successfully, they should navigate to the account page, so I am trying to do this redirection from my actions, here is my code (Note: I am using typescript):
I was trying to follow your doc, but its using
browserHistory
fromreact-router
which is not available in react-router