Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/content/reference/react/ViewTransition.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ Enter/Exit Transitions trigger when a `<ViewTransition>` is added or removed by

```js
function Child() {
return <ViewTransition>Hi</ViewTransition>
return (
<ViewTransition>
<div>Hi</div>
</ViewTransition>
);
}

function Parent() {
Expand Down Expand Up @@ -352,11 +356,7 @@ button:hover {

```js [3, 5]
function Component() {
return (
<div>
<ViewTransition>Hi</ViewTransition>
</div>
);
return <ViewTransition>Hi</ViewTransition>;
}
```

Expand Down Expand Up @@ -519,7 +519,6 @@ button:hover {
background-image: conic-gradient(at top right, #c76a15, #a6423a, #2b3491);
}
.thumbnail.fullscreen {
height: 100%;
width: 100%;
}
.video {
Expand Down