Skip to content

Commit cb2ef65

Browse files
authored
Fix typos in runtime type check explanation
Corrected typos for clarity and accuracy in the README.
1 parent b73c130 commit cb2ef65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ const useCurrentUser = () => {
15531553
};
15541554
```
15551555

1556-
Using a runtime type check in this will has the benefit of printing a clear error message in the console when a provider is not wrapping the components properly. Now it's possible to access `currentUser.username` without checking for `null`:
1556+
Using a runtime type check in this will have the benefit of printing a clear error message in the console when a provider is not wrapping the components properly. Now it's possible to access `currentUser.username` without checking for `null`:
15571557

15581558
```tsx
15591559
import { useContext } from "react";
@@ -1913,7 +1913,7 @@ function App() {
19131913
>
19141914
I'm a modal!{" "}
19151915
<button
1916-
style={{ background: "papyawhip" }}
1916+
style={{ background: "papayawhip" }}
19171917
onClick={() => setShowModal(false)}
19181918
>
19191919
close

0 commit comments

Comments
 (0)