You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/components/link.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,13 +153,16 @@ The `unstable_viewTransition` prop enables a [View Transition][view-transitions]
153
153
154
154
```jsx
155
155
<Link to={to} unstable_viewTransition>
156
+
Click me
157
+
</Link>
156
158
```
157
159
158
160
If you need to apply specific styles for this view transition, you will also need to leverage the [`unstable_useViewTransitionState()`][use-view-transition-state]:
159
161
160
162
```jsx
161
163
functionImageLink(to) {
162
-
let isTransitioning =unstable_useViewTransitionState(to);
0 commit comments