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

bookRedux Store

The entire state of the application is stored in an object called Redux Store. We can create a Redux Store using the configureStore function imported from @reduxjs/toolkit:

import { configureStore } from '@reduxjs/toolkit';
const store = configureStore({ reducer: counterReducer });

In the configureStore function we pass an object containing at least one reducer. The store is a reference to the create store. We can access the object containing the state data using the getState method:

console.log(store.getState())
// {countValue: 7}
question mark

Select the correct code for creating a Redux Store with a reducer called todoReducer.

Select the correct answer

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 3

Pregunte a AI

expand

Pregunte a AI

ChatGPT

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

Awesome!

Completion rate improved to 3.45

bookRedux Store

Desliza para mostrar el menú

The entire state of the application is stored in an object called Redux Store. We can create a Redux Store using the configureStore function imported from @reduxjs/toolkit:

import { configureStore } from '@reduxjs/toolkit';
const store = configureStore({ reducer: counterReducer });

In the configureStore function we pass an object containing at least one reducer. The store is a reference to the create store. We can access the object containing the state data using the getState method:

console.log(store.getState())
// {countValue: 7}
question mark

Select the correct code for creating a Redux Store with a reducer called todoReducer.

Select the correct answer

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 3
some-alt