文件名称:React-Redux-Boilerplate
文件大小:170KB
文件格式:ZIP
更新时间:2024-06-15 02:18:54
JavaScript
React-Redux-样板 创建商店 此biolerplate使用@ reduxjs / toolkit @ 1.5.0并基于slice概念构建为slice之一: import { createSlice } from "@reduxjs/toolkit"; export const counterSlice = createSlice({ name: "counter", initialState: { count: 0, }, reducers: { increment: (state, action) => { state.count += action.payload.change; }, decrement: (state, action) => { state.count -= action.payl
【文件预览】:
React-Redux-Boilerplate-main
----package.json(1KB)
----package-lock.json(608KB)
----src()
--------App.css(920B)
--------index.js(454B)
--------redux()
--------dataBase.js(427B)
--------serviceWorker.js(5KB)
--------App.js(798B)
--------index.css(5B)
----public()
--------manifest.json(492B)
--------robots.txt(67B)
--------index.html(284B)
--------icon.jpg(3KB)
----README.md(2KB)