-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
30 lines (27 loc) · 1013 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
import React, { Component } from 'react';
import { createStore, applyMiddleware } from 'redux';
import firebase from 'firebase';
import { Provider } from 'react-redux';
import reduxThunk from 'redux-thunk';
import reducers from './src/reducers';
import RouterComponent from './Router';
export default class App extends Component{
componentWillMount(){
firebase.initializeApp({
apiKey: "AIzaSyCM5teEUREgGGJ0NIiIoYwYPIgDbjykFw0",
authDomain: "employee-management-sys.firebaseapp.com",
databaseURL: "https://employee-management-sys.firebaseio.com",
projectId: "employee-management-sys",
storageBucket: "employee-management-sys.appspot.com",
messagingSenderId: "580309817014"
})
}
render(){
const store = createStore(reducers, {}, applyMiddleware(reduxThunk))
return(
<Provider store={store}>
<RouterComponent />
</Provider>
);
}
}