1.0.1 • Published 3 years ago

react-dynamic-store v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

react-dynamic-store

INTRODUCTION

The react-dynamic-store is a global state management library

Installation

npm install react-dynamic-store --save

Use It

Wrap your app with the Provider component and initialize your store with createStore:
※The first level substore can only be an object, and cannot be an array or other structure. You can use other data structures in the first level substore

import {setStore,getStore} from 'react-dynamic-store';

setStore({number:1234})
let number = getStore("number").number;

so easy!!