“Redux Thunk e React Redux” Respostas de código

Redux Thunk e React Redux

npm i --save redux react-redux redux-thunk // You will need these redux packages
DecodeBuzzing

Reaja o redux Thunk

import { createStore, applyMiddleware, compose } from "redux";
import rootReducer from "../reducers/index";
import { forbiddenWordsMiddleware } from "../middleware";
import thunk from "redux-thunk";

const storeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

const store = createStore(
  rootReducer,
  storeEnhancers(applyMiddleware(forbiddenWordsMiddleware, thunk))
);

export default store;
Wild Weevil

Respostas semelhantes a “Redux Thunk e React Redux”

Perguntas semelhantes a “Redux Thunk e React Redux”

Mais respostas relacionadas para “Redux Thunk e React Redux” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código