-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
31 lines (22 loc) · 769 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import ReactDOM from 'react-dom';
import React, { Component } from 'react';
import './src/styles/style.scss';
import 'normalize.css/normalize.css';
import AppRouter from './src/routers/AppRouter';
import configureStore from './src/store/configureStore';
import { startSetExpenses } from './src/actions/expenses';
import "react-dates/lib/css/_datepicker.css";
import './firebase/firebase';
import './playground/promises';
import { Provider } from 'react-redux';
const store = configureStore();
const App = (
<Provider store={store}>
<AppRouter />
</Provider>
);
console.log('hello')
ReactDOM.render(<p>Loading...</p>, document.getElementById('app'));
store.dispatch(startSetExpenses()).then(() => {
ReactDOM.render(App, document.getElementById('app'));
})