-
Crear un nuevo componente dentro de la carpeta SRC llamado
CounterApp
-
El CounterApp debe de ser un Functional Component
-
El contenido del CounterApp debe de ser:
CounterApp
import { createSlice } from '@reduxjs/toolkit'; | |
export const templateSlice = createSlice({ | |
name: 'name', | |
initialState: { | |
counter: 10 | |
}, | |
reducers: { | |
increment: (state, /* action */ ) => { | |
//! https://react-redux.js.org/tutorials/quick-start |