import React from 'react' ; import { Switch , Route } from 'react-router' ; import HomePage from 'containers/HomePage/Loadable' ; import Header from './Header' ; const App = ( ) => ( < div > < Header /> < Switch > < Route exact path = '/' component = { HomePage } / > < /Switch> < /div>); export default App ;