Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,7 @@ const useCurrentUser = () => {
};
```

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`:
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`:

```tsx
import { useContext } from "react";
Expand Down Expand Up @@ -1913,7 +1913,7 @@ function App() {
>
I'm a modal!{" "}
<button
style={{ background: "papyawhip" }}
style={{ background: "papayawhip" }}
onClick={() => setShowModal(false)}
>
close
Expand Down
2 changes: 1 addition & 1 deletion docs/basic/getting-started/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const useCurrentUser = () => {
};
```

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`:
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`:

```tsx
import { useContext } from "react";
Expand Down
2 changes: 1 addition & 1 deletion docs/basic/getting-started/portals.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function App() {
>
I'm a modal!{" "}
<button
style={{ background: "papyawhip" }}
style={{ background: "papayawhip" }}
onClick={() => setShowModal(false)}
>
close
Expand Down
Loading