why createbrowserhistory is used in react code example
Example: require("history").createBrowserHistory` instead of `require("history/createBrowserHistory")`
// history.js
import { createBrowserHistory } from "history";
export default createBrowserHistory();