Why to use browserHistory

Why to use browserHistory in react how to use it?

It’s for React Router, and some googling around suggests it’s been obsolete for a while. Use the useHistory hook instead:

1 Like