“combinador de combinadores” Código de respuesta

combinador de combinadores

import { combineReducers } from 'redux'

rootReducer = combineReducers({potato: potatoReducer, tomato: tomatoReducer})
// This would produce the following state object
{
  potato: {
    // ... potatoes, and other state managed by the potatoReducer ...
  },
  tomato: {
    // ... tomatoes, and other state managed by the tomatoReducer, maybe some nice sauce? ...
  }
}
Ofir Salem

combinador de combinadores

rootReducer = combineReducers({potato: potatoReducer, tomato: tomatoReducer})
// This would produce the following state object
{
  potato: {
    // ... potatoes, and other state managed by the potatoReducer ...
  },
  tomato: {
    // ... tomatoes, and other state managed by the tomatoReducer, maybe some nice sauce? ...
  }
}
Quaint Quoll

Respuestas similares a “combinador de combinadores”

Preguntas similares a “combinador de combinadores”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código