You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+87-1Lines changed: 87 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,22 @@ The simplest state management tool for React. Built completely with React Hooks!
20
20
21
21
### 🚧 Work in Progress 👷🏽♂️🏗
22
22
23
-
###You are welcome to Install & Try out the project in the mean time!
23
+
This library is currently under heavy testing. Hence it is **NOT** recommended for PROD _just yet_... You are welcome to Install & Try out the project in the mean time!
24
24
25
25
### PRs Welcome 👍✨
26
26
27
27
</div>
28
28
29
+
## Motivation
30
+
31
+
React is a simple and straightforward library for building UI however, the current solutions to manage states aren't quite simple or straightforward as React.
32
+
33
+
Rex State aims to be the simplest way to manage states in your React Project.
34
+
35
+
## Requirements
36
+
37
+
Rex State is built purely on React Hooks hence it requires React > 16.8 to work. It also doesn't work with class components.
38
+
29
39
## Installation
30
40
31
41
```sh
@@ -38,6 +48,82 @@ npm i rex-state
38
48
39
49
## Usage
40
50
51
+
Rex State is inspired by React's simplicity in building UI. Hence it borrows one of the most common React-ish style for creating & updating states.
The above component will render a simple input field and will take care of updating the input state when a new value is entered in the input field. However, the state & UI are tightly coupled together and it is impossible to reuse the same state logic to a different UI.
0 commit comments