Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
✓ Published0🌍 Public
AAjayyy
Last edited Sep 22, 2015
Created on Mar 9, 2019
This example demonstrates a minimal, single-file implementation of Redux’s core API, including `createStore`, `combineReducers`, `bindActionCreators`, and `applyMiddleware`. It shows how these functions work together to manage state and dispatch actions, with `subscribe` for listener registration and `replaceReducer` for hot-swapping. The code defines the store’s logic directly, using plain JavaScript functions like `mapValues` and `compose` to replicate the original library’s behavior without its validation checks. The listing is a gist by Stroked, intended as a concise educational reference for Redux’s internals.
AI-generated description