Skip to content

Commit 16689d8

Browse files
authored
Update import of history package
Update import of `history` package to avoid the following error: ``` Warning: Please use `require("history").createBrowserHistory` instead of `require("history/createBrowserHistory")`. Support for the latter will be removed in the next major release. ```
1 parent bf4b09e commit 16689d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client-generator/react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ import { Provider } from 'react-redux';
7575
import thunk from 'redux-thunk';
7676
import { reducer as form } from 'redux-form';
7777
import { Route, Switch } from 'react-router-dom';
78-
import createBrowserHistory from 'history/createBrowserHistory';
78+
import { createBrowserHistory } from "history";
7979
import {
8080
ConnectedRouter,
8181
connectRouter,

0 commit comments

Comments
 (0)