Skip to content

Commit 7b313b3

Browse files
author
Igor Mucsicska
committed
Add working demo image
1 parent 54fe62f commit 7b313b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
This package allows sharing data between components with hooks. In many cases leads to more simple implementation compared to Context API.
77
`createSharedState` creates a hook very similar to `useState` but with sync state across hook instances. Setting a value in one component will result re-rendering every component which uses the same hook.
88

9+
![image](https://user-images.githubusercontent.com/3163392/68551190-7fe32c80-040a-11ea-935c-e390f1121a24.png)
10+
911
## Side-by-side comparison with Context API
1012

1113
![image](https://user-images.githubusercontent.com/3163392/68534701-aedc9e00-0337-11ea-89c3-7eed540f23cd.png)

0 commit comments

Comments
 (0)