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
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# create-use-context
2
2
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`.
4
4
5
5
## Installation
6
6
@@ -18,7 +18,7 @@ yarn add create-use-context
18
18
19
19
## Screenshot
20
20
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
0 commit comments