Skip to content

Commit 020fd1f

Browse files
committed
[splendo#9] Added Redux to index.tsx
1 parent a9290f1 commit 020fd1f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hearthstone/src/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ import App from './App';
55
import "reflect-metadata";
66
import * as Inversify from "inversify-react";
77
import container from '../config/inversify';
8+
import { configureStore } from './redux/store/storeConfig';
9+
import * as Redux from "react-redux";
810

11+
const store = configureStore(container);
912
ReactDOM.render(
1013
<Inversify.Provider container={container}>
11-
<App />
14+
<Redux.Provider store={store}>
15+
<App />
16+
</Redux.Provider>
1217
</Inversify.Provider>
1318
, document.getElementById('root'));

0 commit comments

Comments
 (0)