-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
31 lines (27 loc) · 854 Bytes
/
App.js
File metadata and controls
31 lines (27 loc) · 854 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
import React from 'react';
import Routes from './src/Routes/Routes';
import reducers from './src/reducers'
import firebase from 'firebase';
import ReduxThunk from 'redux-thunk';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
export default class App extends React.Component {
componentWillMount() {
// Initialize Firebase
firebase.initializeApp({
apiKey: "AIzaSyDkok5g5aohLV8c9-Il4upDLA976tKuvEM",
authDomain: "zipzepelin.firebaseapp.com",
databaseURL: "https://zipzepelin.firebaseio.com",
projectId: "zipzepelin",
storageBucket: "zipzepelin.appspot.com",
messagingSenderId: "70634397166"
});
}
render() {
return (
<Provider store={createStore(reducers, {}, applyMiddleware(ReduxThunk))}>
<Routes/>
</Provider>
);
}
}