|
a |
|
b/app/frontend/src/index.js |
|
|
1 |
import ReactDOM from 'react-dom' |
|
|
2 |
import React from 'react' |
|
|
3 |
|
|
|
4 |
import App from './components/App'; |
|
|
5 |
|
|
|
6 |
import './tailwind.generated.css'; |
|
|
7 |
|
|
|
8 |
import {Provider} from 'react-redux'; |
|
|
9 |
import {createStore, applyMiddleware} from "redux"; |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
import thunk from 'redux-thunk'; |
|
|
13 |
import reducers from './reducers'; |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
ReactDOM.render( |
|
|
17 |
<Provider store = {createStore(reducers,applyMiddleware(thunk))}> |
|
|
18 |
<App /> |
|
|
19 |
</Provider> |
|
|
20 |
, |
|
|
21 |
document.getElementById('root') |
|
|
22 |
); |
|
|
23 |
|