<reponame>simoneas02/dev-beers<filename>src/components/App.js
import React, { Component } from 'react';
import { Switch, Route } from 'react-router-dom';

import ListItem from './ListItem';
import DetailItem from './DetailItem';
import Header from './Header';
import Footer from './Footer';

import '../assets/style/main.styl';

class App extends Component {
  render() {
    return (
      <div className='container'>
        <Header />
        <main className='main'>
          <Switch>
            <Route exact path={process.env.PUBLIC_URL + '/'} component={ListItem} />
            <Route path='/detail-item' component={DetailItem} />
          </Switch>
        </main>
        <Footer />
      </div>
    );
  }
}

export default App;
