Skip to content

Commit e93e908

Browse files
committed
Docs updates
1 parent b09c5d0 commit e93e908

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/components/link.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,16 @@ The `unstable_viewTransition` prop enables a [View Transition][view-transitions]
153153

154154
```jsx
155155
<Link to={to} unstable_viewTransition>
156+
Click me
157+
</Link>
156158
```
157159

158160
If you need to apply specific styles for this view transition, you will also need to leverage the [`unstable_useViewTransitionState()`][use-view-transition-state]:
159161

160162
```jsx
161163
function ImageLink(to) {
162-
let isTransitioning = unstable_useViewTransitionState(to);
164+
const isTransitioning =
165+
unstable_useViewTransitionState(to);
163166
return (
164167
<Link to={to} unstable_viewTransition>
165168
<p

docs/components/nav-link.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,3 @@ Please note that this API is marked unstable and may be subject to breaking chan
177177

178178
[aria-current]: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current
179179
[view-transitions]: https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API
180-
[use-view-transition-state]: ../hooks//use-view-transition-state

0 commit comments

Comments
 (0)