Skip to content

Commit 9898838

Browse files
authored
Update README.md (#11)
1 parent 77aa75f commit 9898838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# create-use-context
22

3-
A helper method which wraps original React `createContext` method and type-safe `useContext` hook which will throw if used outside of `Provider`.
3+
A helper method which wraps original React `useContext` method in a type-safe manner providing `NonNullable` context value. Will throw if used outside of `Provider`.
44

55
## Installation
66

@@ -18,7 +18,7 @@ yarn add create-use-context
1818

1919
## Screenshot
2020

21-
Mind the `useMyContext` return type is `NonNullable` context value. It will throw if used outside of `Provider`
21+
Mind the `useMyContext` return type is `NonNullable` context value
2222

2323
![Screenshot](Screenshot.png)
2424

0 commit comments

Comments
 (0)