Skip to content

Instantly share code, notes, and snippets.

View antonioc-cl's full-sized avatar

Antonio Correa antonioc-cl

View GitHub Profile
@antonioc-cl
antonioc-cl / templateSlice.js
Created May 11, 2023 18:24 — forked from Klerith/templateSlice.js
Cascaron para crear Redux Slices rápidamente
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