history.push reactr router dom state code example Example: history.pushstate history.pushState(state, title[, url])