Last active
June 1, 2020 15:26
-
-
Save neenhouse/4b0dc9946e4a356d813ef5154a39a23e to your computer and use it in GitHub Desktop.
Federated AppShell
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
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import {HashRouter} from 'react-router-dom'; | |
import {Header} from './Header'; | |
import {Footer} from './Footer'; | |
import './App.less'; | |
function App({children}) { | |
return ( | |
<HashRouter> | |
<div className={'appshell-container'}> | |
<Header /> | |
<div className="appshell-content">{children}</div> | |
<Footer /> | |
</div> | |
</HashRouter> | |
); | |
} | |
App.propTypes = { | |
children: PropTypes.Any | |
}; | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment