currentURL.searchParams.set() react 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'
})