官术网_书友最值得收藏!

Creating utilities

We used a history object in app.js. We can create history.js inside of the utils folder and create an instance of history. You can learn more about history from https://github.com/ReactTraining/history. In a nutshell, the history library manages the session history everywhere that JavaScript runs:

import createHistory from "history/createBrowserHistory";
const history = createHistory();
export default history;
主站蜘蛛池模板: 博客| 辽阳市| 霍邱县| 东方市| 韩城市| 台江县| 锦屏县| 磴口县| 石泉县| 溧水县| 汉阴县| 余姚市| 紫阳县| 邓州市| 灌云县| 靖西县| 安平县| 禹城市| 石景山区| 田东县| 聂拉木县| 淅川县| 郁南县| 高雄市| 衡南县| 临夏县| 兴海县| 屏南县| 冕宁县| 绥中县| 友谊县| 襄樊市| 六枝特区| 喀喇| 石柱| 东乡族自治县| 天台县| 武义县| 龙江县| 门头沟区| 若尔盖县|