Skip to content

Commit f8c54a8

Browse files
committed
chore: format
1 parent abb23de commit f8c54a8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/hooks/use-view-transition-state.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,17 @@ Consider clicking on an image in a list that you need to expand into the hero im
3131
```jsx
3232
function NavImage({ src, alt, id }) {
3333
const to = `/images/${id}`;
34-
const isTransitioning = unstable_useViewTransitionState(to);
34+
const isTransitioning =
35+
unstable_useViewTransitionState(to);
3536
return (
3637
<Link to={to} unstable_viewTransition>
3738
<img
3839
src={src}
3940
alt={alt}
4041
style={{
41-
viewTransitionName: isTransitioning ? "image-expand" : "",
42+
viewTransitionName: isTransitioning
43+
? "image-expand"
44+
: "",
4245
}}
4346
/>
4447
</Link>

0 commit comments

Comments
 (0)