🔴
Optimistic Pioneer
-
Hyperdrive, OptiChads, OP Bunnies
- Washington DC, USA
-
13:44
(UTC -12:00) - https://optichads.art
- @DistractionBoy_
Pinned Loading
-
-
-
quick react context with reducer
quick react context with reducer 1export function createCtx<StateType, ActionType>(
2reducer: React.Reducer<StateType, ActionType>,
3initialState: StateType,
4) {
5const defaultDispatch: React.Dispatch<ActionType> = () => initialState // we never actually use this
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.