Skip to content

Commit

Permalink
docs(hooks/use-view-transition-state): fix typo (#10183)
Browse files Browse the repository at this point in the history
  • Loading branch information
strackfeldt authored Nov 4, 2024
1 parent 497aa9a commit 1bd7f94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@
- staylor
- stephanerangaya
- stephenwade
- strackfeldt
- SufianBabri
- supachaidev
- syeef
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/use-view-transition-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Consider clicking on an image in a list that you need to expand into the hero im
```jsx
function NavImage({ src, alt, id }) {
const to = `/images/${idx}`;
const vt = useViewTransitionState(href);
const vt = useViewTransitionState(to);
return (
<Link to={to} viewTransition>
<img
Expand Down

0 comments on commit 1bd7f94

Please sign in to comment.