Programmatically navigate using react router V4

I have just replaced react-router from v3 to v4.
But I am not sure how to programmatically navigate in the member function of a Component.
i.e in handleClick() function I want to navigate to /path/some/where after processing some data.
I used to do that by:

import { browserHistory } from 'react-router'
browserHistory.push('/path/some/where')

But I can’t find such interfaces in v4.
How can I navigate using v4?

17 Answers
17

Leave a Comment