Last active
February 1, 2018 02:10
-
-
Save zrod/45f182cd9de57f3a4bb7cd9e376ed5ca to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// ... | |
export class App extends React.Component | |
{ | |
static propTypes = { | |
auth: PropTypes.object.isRequired | |
}; | |
render() { | |
// ... | |
return ( | |
<div id="app"> | |
<Header /> | |
<Route exact path="/" component={MainPage} /> | |
<Route path="/stores" component={StoresPage} /> | |
<Route path="/products" component={ProductsPage} /> | |
<Route path="/products/:slug" component={ProductDetailPage} /> | |
<Footer /> | |
</div> | |
); | |
} | |
} |
This file contains hidden or 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
//... | |
render( | |
<Provider store={store}> | |
<BrowserRouter> | |
<Switch> | |
<App /> | |
<Route component={NotFound} /> | |
</Switch> | |
</BrowserRouter> | |
</Provider>, | |
document.getElementById('app') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment