New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oneref

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oneref

Minimalist Unidirectional Data Flow for React

0.9.0
latest
Source
npm
Version published
Weekly downloads
581
-20.19%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 19 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts