Skip to content

Commit da4295a

Browse files
authored
docs: fix papayawhip typo and context section grammar (#813)
1 parent c299ceb commit da4295a

3 files changed

Lines changed: 4 additions & 4 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

docs/basic/getting-started/context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const useCurrentUser = () => {
107107
};
108108
```
109109

110-
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`:
110+
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`:
111111

112112
```tsx
113113
import { useContext } from "react";

docs/basic/getting-started/portals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function App() {
9090
>
9191
I'm a modal!{" "}
9292
<button
93-
style={{ background: "papyawhip" }}
93+
style={{ background: "papayawhip" }}
9494
onClick={() => setShowModal(false)}
9595
>
9696
close

0 commit comments

Comments
 (0)