State Handlers
Underlying state handlers which MAY BE made available for system versatility
Comparison and Use Cases
Technical Notes
npm install @types/react-reduximport { createAction, createReducer } from '@reduxjs/toolkit';
interface MyState {
value: number;
}
const initialState: MyState = { value: 0 };
const increment = createAction('increment');
const myReducer = createReducer(initialState, (builder) => {
builder.addCase(increment, (state, action) => {
state.value += 1;
});
});
MobX with TypeScript
Storage
Last updated