redux devtools with middleware
import { applyMiddleware, compose, createStore } from "redux";
import thunk from "redux-thunk";
import rootReducer from "./rootReducer";
// for this we'll use Redux "compose" function
const enhancers = compose(
applyMiddleware(thunk), // your own middleware
window.devToolsExtension ? window.__REDUX_DEVTOOLS_EXTENSION__() : (f) => f
);// devtools middleware
export const store = createStore(rootReducer, enhancers);
Also in JavaScript:
- iterate through list javascript
- json file example
- refresh page on button click jquery
- if isset handlebars js
- javascript random()
- how to delete a cookie in js
- has own propriety javascrip
- javascript console mensaje
- js startswith
- agregar año en javascript
- how to flatten array with reduce in javascript
- how to parse json in java
- exercism.io bob solution
- sass variables across files
- how to change a string to number in javascript
- react native image not working ios 14
- spread operator javascript
- jquery copy to clipboard
- statusbar reactnati
- angular viewchild set attribute
- get query param javascript
- parent class and add element addclass
- objects javascript
- jqeury cdn