index.js:1 Warning: Please use `require("history").createBrowserHistory` instead of `require("history/createBrowserHistory")`. Support for the latter will be removed in the next major releas code example
Example: require("history").createBrowserHistory` instead of `require("history/createBrowserHistory")`
// history.js
import { createBrowserHistory } from "history";
export default createBrowserHistory();