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

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;
主站蜘蛛池模板: 越西县| 大关县| 射阳县| 双柏县| 武威市| 海南省| 北流市| 仙桃市| 根河市| 同德县| 漳平市| 仁布县| 南江县| 将乐县| 郴州市| 河北省| 武城县| 镇沅| 吉木乃县| 潢川县| 长乐市| 盐池县| 瑞安市| 南部县| 闵行区| 襄垣县| 北海市| 鄂温| 栾川县| 肥乡县| 准格尔旗| 五河县| 姚安县| 许昌市| 南城县| 永康市| 阳东县| 铜梁县| 离岛区| 孝昌县| 大关县|