Created
April 10, 2019 13:09
-
-
Save StevenConradEllis/2b7d53fd72e03045cdbc817cfa6761e2 to your computer and use it in GitHub Desktop.
IonApp, Provider, Route
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import '@ionic/core/css/core.css'; | |
import '@ionic/core/css/ionic.bundle.css'; | |
import {IonApp} from '@ionic/react'; | |
import store from "./store/store"; | |
import {BrowserRouter as Router, Route} from 'react-router-dom'; | |
import {Provider} from 'react-redux'; | |
import AppStack from "./pages/AppStack"; | |
const App = () => ( | |
<Provider store={store}> | |
<Router> | |
<div id="app"> | |
<IonApp> | |
<Route path="/" component={AppStack} /> | |
</IonApp> | |
</div> | |
</Router> | |
</Provider> | |
); | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment