What can replace the history.push() method in React