Skip to content

Commit 54fe62f

Browse files
author
Igor Mucsicska
committed
Improve docs
1 parent b396761 commit 54fe62f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Build Status](https://github.com/mucsi96/react-create-shared-state/workflows/Build/badge.svg)](https://github.com/mucsi96/react-create-shared-state/actions?query=workflow%3ABuild+branch%3Amaster)
55

66
This package allows sharing data between components with hooks. In many cases leads to more simple implementation compared to Context API.
7-
`createSharedState` creates a hook very similar to `useState` but with sync state across the application. Setting a value in one component will result re-rendering every component which uses the same hook.
7+
`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

99
## Side-by-side comparison with Context API
1010

0 commit comments

Comments
 (0)