mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Fix docs typo
This commit is contained in:
parent
f1eaf4c2cc
commit
ed319db199
@ -53,7 +53,7 @@ Here's an example. To retrieve the current user, simply call:
|
||||
```tsx
|
||||
export function MyComponent() {
|
||||
const user = useUser({ or: "redirect" });
|
||||
return <div>{user ? `Hi, ${user.displayName}` : 'You are not logged in'}</div>;
|
||||
return <div>{`Hi, ${user.displayName}`}</div>;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user