React Cannot call a class as a function

clipboard.png

clipboard.png

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")

);

Mar.13,2021

you want redux-thunk , you pretend to be react-thunk .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea2d06-479c7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea2d06-479c7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?