JSPM

react-simple-context-state

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q26588F
  • License MIT

Dead simple top down state management for React

Package Exports

  • react-simple-context-state

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-simple-context-state) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-simple-state

Dead simple top down state management for React

What Does it Do?

React is simple to work with, especially when you can stay disciplined and have all your state trickle down through the root of your application. Redux patterns encourage this but comes with extra boilerplate and futzing around with immutability and reducers.

This library is meant to make state management as simple as possible with the least amount of work.

Setting it up looks like this:

  1. Create one or more instances of ReactSimpleStateStore
  2. Add a higher level ReactSimpleStateProvider
  3. Consume values from a context consumer
  4. Update state through the shared instance

That's it. There are reducers but you get all the deterministic benefits of top level immutable state management approach.

Installation

yarn add react-simple-state

Usage