- Redux Quick Start Guide
- James Lee Tao Wei Suresh Kumar Mukhiya
- 58字
- 2021-07-02 12:40:32
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;
推薦閱讀
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)(第三版)
- 自己動(dòng)手寫(xiě)Java虛擬機(jī)
- Instant Typeahead.js
- TypeScript項(xiàng)目開(kāi)發(fā)實(shí)戰(zhàn)
- Oracle Exadata專(zhuān)家手冊(cè)
- PHP 7+MySQL 8動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)從入門(mén)到精通(視頻教學(xué)版)
- Python忍者秘籍
- Orchestrating Docker
- Android Sensor Programming By Example
- Magento 2 Beginners Guide
- Arduino機(jī)器人系統(tǒng)設(shè)計(jì)及開(kāi)發(fā)
- Qt 4開(kāi)發(fā)實(shí)踐
- Mastering Clojure
- Mastering R for Quantitative Finance
- MATLAB從入門(mén)到精通