🔴
Optimistic Pioneer
-
Hyperdrive, OptiChads, OP Bunnies
- Washington DC, USA
-
12:34
(UTC -12:00) - https://optichads.art
- @DistractionBoy_
Block or Report
Block or report DistractionBoy
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
-
-
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.