Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Store Dispatch Method | Fundamental Concepts
Introduction to Redux
course content

Contenido del Curso

Introduction to Redux

Introduction to Redux

1. Getting Started
2. Fundamental Concepts
3. Redux in Practice
4. Creating a React-Redux Application

book
Store Dispatch Method

Redux store object has a dispatch method which can be used for dispatching actions.

When we want something to happen, for example, the counter value to be incremented, we can dispatch the counter/increment action using the dispatch method:

js

The reducer function will handle this dispatched action we passed into the Redux store, counterReducer. The reducer function returns a new state object and updates the store accordingly – we don't have to do anything related to that; it is handled by Redux and happens on the backend, we dispatch the action using the store's method.

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 4

Pregunte a AI

expand
ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

course content

Contenido del Curso

Introduction to Redux

Introduction to Redux

1. Getting Started
2. Fundamental Concepts
3. Redux in Practice
4. Creating a React-Redux Application

book
Store Dispatch Method

Redux store object has a dispatch method which can be used for dispatching actions.

When we want something to happen, for example, the counter value to be incremented, we can dispatch the counter/increment action using the dispatch method:

js

The reducer function will handle this dispatched action we passed into the Redux store, counterReducer. The reducer function returns a new state object and updates the store accordingly – we don't have to do anything related to that; it is handled by Redux and happens on the backend, we dispatch the action using the store's method.

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 4
Lamentamos que algo salió mal. ¿Qué pasó?
some-alt