import React from 'react'; import { HashRouter as Router, Route, Redirect, Switch } from "react-router-dom"; import { HomePage } from './HomePage/HomePage'; import { store } from '../store/store'; import { Provider } from 'react-redux'; import { logout } from '../store/actions/logout'; export class App extends React.Component { render() { return ( { this.logout(); return ; }} /> } /> ); } logout() { store.dispatch(logout()); } }