how to add query parameter to url react code example
Example 1: append a query string to the url react
history.push({
pathname: '/dresses',
search: '?color=blue'
})
Example 2: how to add query parameter to url reactjs
history.push({
pathname: '/dresses',
search: '?color=blue'
})
or
history.push('/dresses?color=blue')