import React from "react";
import ReactDOM from" react-dom";
import {HashRouter as Router, Route, Switch} from "react-router-dom"
import {createStore, applyMiddleware, compose} from" redux"
import thunk from "react-thunk"
import {Provider} from" react-redux"
const {ipcRenderer} = require ("electron")
import reducers from". / reducers/reducer.js"
const reduxDevtools=window.devToolsExtension?window.devToolsExtension (): f = > f;
const store = createStore (reducers,compose (
applyMiddleware(thunk),
reduxDevtools
));
import Logo from". / components/logo/logo.js"
import Login from". / containers/login/login.js"
import Register from". / containers/register/register.js"
import Home from". / containers/home/home.js"
ReactDOM.render (
< Provider store= {store} >
<Router>
<Switch>
<Route path="/" exact component={Logo} />
<Route path="/login" component={Login} />
<Route path="/register" component={Register} />
<Route path="/home" component={Home} />
</Switch>
</Router>
< / Provider >, document.getElementById ("root")
);