text: import React from 'react'
  import {Switch, Route} from 'react-router-dom'
  import styled, {createGlobalStyle} from 'styled-components'
  import styledNormalize from 'styled-normalize'
  import Home from '../containers/home'
  import Error from '../containers/error'
  
  const GlobalStyle = createGlobalStyle`
    ${styledNormalize}
  
    html {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
    }
  
    body, #app {
      width: 100%;
      height: 100%;
    }
  
    *, *:before, *:after {
      box-sizing: inherit;
    }
  `
  
  const Wrapper = styled.div`
    width: 100%;
    height: 100%;
    position: relative;
  `
  
  const App = () =>
    <Wrapper>
      <GlobalStyle />
      <Switch>
        <Route
          exact
          path='/'
          component={Home}
        />
        <Route
          path='*'
          component={Error}
        />
      </Switch>
    </Wrapper>
  
  export default App
  