application-store

a store with dynamic middleware and reducers

Usage no npm install needed!

<script type="module">
  import applicationStore from 'https://cdn.skypack.dev/application-store';
</script>

README

application-store

import { createStore } from "application-store"

const store = createStore()

store api

.getState()

.getReducer()

.getMiddleware()

.dispatch([...args])

.subscribe(listener)

.extendReducer(reducer)

.replaceReducer(reducer)

.insertMiddleware(middleware)