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 c15e20f commit e627ef4Copy full SHA for e627ef4
src/content/reference/react/ViewTransition.md
@@ -159,7 +159,11 @@ Enter/Exit Transitions trigger when a `<ViewTransition>` is added or removed by
159
160
```js
161
function Child() {
162
- return <ViewTransition>Hi</ViewTransition>
+ return (
163
+ <ViewTransition>
164
+ <div>Hi</div>
165
+ </ViewTransition>
166
+ );
167
}
168
169
function Parent() {
@@ -352,11 +356,7 @@ button:hover {
352
356
353
357
```js [3, 5]
354
358
function Component() {
355
- return (
- <div>
- <ViewTransition>Hi</ViewTransition>
- </div>
359
- );
+ return <ViewTransition>Hi</ViewTransition>;
360
361
```
362
0 commit comments