I'm new to the Redux world, so I was following the Todo List example of the redux.js.org , I tested the code and it works just fine with the redux store having only the reducer as its parameter :
import React from "react";
import { render } from "react-dom";
import { Provider } from "react-redux";
import { createStore } from "redux";
import rootReducer from "./reducers";
import App from "./components/App";
const store = createStore(rootReducer);
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById("root")
);
as soon as introduce window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() as a second parameter to the store in order to be able to use the redux devtools I get this error : error I don't see where I went wrong, I hope you guys could help me figure it out.