-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
33 lines (29 loc) · 919 Bytes
/
App.js
File metadata and controls
33 lines (29 loc) · 919 Bytes
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
32
33
import React, {Component} from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import firebase from 'firebase';
import ReduxThunk from 'redux-thunk';
import reducers from './src/reducers';
import LoginForm from './src/components/LoginForm';
class App extends Component {
componentWillMount(){
var config = {
apiKey: "AIzaSyAg4F8mnFEXR8dG0cRVCZoTHMKJkggTCts",
authDomain: "manager-employees-4d0b0.firebaseapp.com",
databaseURL: "https://manager-employees-4d0b0.firebaseio.com",
projectId: "manager-employees-4d0b0",
storageBucket: "",
messagingSenderId: "701699738758"
};
firebase.initializeApp(config);
};
render() {
const store = createStore(reducers, {}, applyMiddleware(ReduxThunk));
return (
<Provider store={store}>
<LoginForm/>
</Provider>
);
}
}
export default App;