Socket
Socket
Sign inDemoInstall

oneref

Package Overview
Dependencies
10
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    oneref

Minimalist Unidirectional Data Flow for React


Version published
Weekly downloads
555
decreased by-23.87%
Maintainers
1
Install size
3.80 MB
Created
Weekly downloads
 

Readme

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

Last updated on 19 Sep 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc