I want to add params to the current URL, for example if I do a query or I am looking from records 10 to 20 I just want the URL to reflect on that without reloading. For example: http://myurl/?q=searchworkd&min=10&results=10.
I having being searching for this but I am confused. All the examples usually talk about redirecting or adding new params and I dont if I should use history, browserHistory or hashHistory. All the
import {useHistory} from 'react-router-dom'and do something likehistory.push('/yoururl?results=20')