Redux Reducers
A reducer is a function that receives the action, along with a JavaScript object representing the initial (previous) state, and updates the state if needed.
A reducer function receives all the actions that are dispatched, it returns a newly updated state object.
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Awesome!
Completion rate improved to 3.45
Redux Reducers
Pyyhkäise näyttääksesi valikon
A reducer is a function that receives the action, along with a JavaScript object representing the initial (previous) state, and updates the state if needed.
A reducer function receives all the actions that are dispatched, it returns a newly updated state object.
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2