Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 15996f7

Browse files
committed
updated README
1 parent fb7e9e8 commit 15996f7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ npm i rex-state
4848

4949
## Usage
5050

51+
```jsx
52+
import useRex, { createRexStore } from "rex-state";
53+
```
54+
55+
### API ﹣
56+
57+
- [`useRex`](#userex-hook)
58+
- [`createRexStore`](#createrexstore)
59+
5160
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.
5261

5362
### This is a classic React functional component with `useState` hook
@@ -386,6 +395,12 @@ That concludes this tutorial. The final working code is available for you to try
386395

387396
> You can also create multiple stores. Just rename `RexProvider` & `useStore` properties of each store before you export them to other components 😁
388397
398+
## Why Rex State over other state management tools?
399+
400+
- Simple & un-opinionated
401+
- As fast as React
402+
- Built for projects of all sizes!
403+
389404
## TODO:
390405

391406
I'm working hard to make this library PROD ready. Stay tuned! ✨

0 commit comments

Comments
 (0)