We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abb23de commit f8c54a8Copy full SHA for f8c54a8
docs/hooks/use-view-transition-state.md
@@ -31,14 +31,17 @@ Consider clicking on an image in a list that you need to expand into the hero im
31
```jsx
32
function NavImage({ src, alt, id }) {
33
const to = `/images/${id}`;
34
- const isTransitioning = unstable_useViewTransitionState(to);
+ const isTransitioning =
35
+ unstable_useViewTransitionState(to);
36
return (
37
<Link to={to} unstable_viewTransition>
38
<img
39
src={src}
40
alt={alt}
41
style={{
- viewTransitionName: isTransitioning ? "image-expand" : "",
42
+ viewTransitionName: isTransitioning
43
+ ? "image-expand"
44
+ : "",
45
}}
46
/>
47
</Link>
0 commit comments