-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
31 lines (30 loc) · 918 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 React, {Component} from 'react';
import {Provider} from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import reducers from './src/reducers/';
import firebase from 'firebase';
import LoginForm from './src/components/LoginForm';
import ReduxThunk from 'redux-thunk';
import Router from './src/Router';
class App extends Component {
componentWillMount() {
const config = {
apiKey: 'AIzaSyCHHced1JzXf6anX0OT81L1hr6GP44WHtk',
authDomain: 'manager-fea9e.firebaseapp.com',
databaseURL: 'https://manager-fea9e.firebaseio.com',
projectId: 'manager-fea9e',
storageBucket: '',
messagingSenderId: '151636602577'
};
firebase.initializeApp(config);
}
render(){
const store= createStore(reducers, {}, applyMiddleware(ReduxThunk));
return(
<Provider store={store}>
<Router />
</Provider>
);
}
}
export default App;