oneref
v0.9.0
Published
Minimalist Unidirectional Data Flow for React
Downloads
3,834
Readme
OneRef - Minimalist Unidirectional Data Flow for React
This repository contains the support code for OneRef, a state management library for React.
OneRef is based on maintaining application state in a purely functional (immutable) data structure, typically using a library such as Immutable.js. A value of this type is stored in a single top-level mutable ref cell.
OneRef is described in a pair of companion blog posts: A Tutorial Introduction to OneRef and Asynchrony Support in OneRef. Also see the oneref-examples repository for several runnable examples.
Building the Library
The implementation is written in TypeScript and depends on React Hooks.
To install necessary build dependencies:
npm install
To build the library:
npm run build
License
This code is distributed under the MIT license, see the LICENSE file for complete information.