import React, {Component} from 'react';
import {Provider} from 'react-redux';
import './App.css';
import {Route} from 'react-router-dom';
import Home from './containers/Home';
import TopicsList from './containers/TopicsList';
import store from './store/configureStore';
import Header from "./components/Header";
import Footer from "./components/Footer";

class App extends Component {
  render() {
    return (
      <Provider store={store}>

        <div className="App">
          <Header/>
          <Route exact={true} path="/" component={Home}/>
          <Route path="/topics" component={TopicsList}/>
          <Footer/>
        </div>
      </Provider>
    );
  }
}

export default App;
