react router dom add query params code example
Example: append a query string to the url react
history.push({
pathname: '/dresses',
search: '?color=blue'
})
history.push({
pathname: '/dresses',
search: '?color=blue'
})