react-state-bucket 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
<h1 align="center">React State Bucket</h1>
|
|
6
6
|
|
|
7
|
-
[GitHub Repository](https://github.com/devnax/react-state-bucket)
|
|
8
|
-
[NPM Package](https://www.npmjs.com/package/react-state-bucket)
|
|
9
|
-
|
|
10
|
-
## Overview
|
|
11
7
|
|
|
12
8
|
`react-state-bucket` is a lightweight and powerful package designed to manage states globally in React applications. It provides CRUD operations for your state data with ease, enabling developers to handle complex state management scenarios without the need for heavy libraries.
|
|
13
9
|
|
|
@@ -40,7 +36,7 @@ npm install react-state-bucket
|
|
|
40
36
|
"use client";
|
|
41
37
|
|
|
42
38
|
import React from "react";
|
|
43
|
-
import createBucket from "react-state-bucket";
|
|
39
|
+
import {createBucket} from "react-state-bucket";
|
|
44
40
|
|
|
45
41
|
// Create a bucket with initial state
|
|
46
42
|
const useGlobalState = createBucket({ count: 0, user: "Guest" });
|
|
@@ -111,7 +107,7 @@ function PersistentExample() {
|
|
|
111
107
|
"use client";
|
|
112
108
|
|
|
113
109
|
import React from "react";
|
|
114
|
-
import createBucket from "react-state-bucket";
|
|
110
|
+
import {createBucket} from "react-state-bucket";
|
|
115
111
|
|
|
116
112
|
// Create a global bucket
|
|
117
113
|
const useGlobalState = createBucket({ count: 0, user: "Guest" });
|
package/package.json
CHANGED