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