Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 664 Bytes

readme.md

File metadata and controls

27 lines (16 loc) · 664 Bytes

@reverse/state

State holders which can be used with React Hooks to easily display data.

You can install with nodejs and npm

npm i @reverse/state

Table of Contents

SimpleState

A Simple State holder. Contains an internal value and an event emitter.

Storage State

Same as Simple State, but it syncs it's value to a localStorage item. Supports all values serializable by JSON.stringify/JSON.parse.

hookFromState

Creates a React Hook using a state's get method and event listeners.