Skip to content

Commit cb4bc3f

Browse files
authored
Update src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md
1 parent 54144b2 commit cb4bc3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,8 +1306,8 @@ import {unstable_ViewTransition as ViewTransition} from 'react'; import Details
13061306
export default function App() {
13071307
const {url} = useRouter();
13081308

1309-
// Use ViewTransition to animate between pages.
1310-
// No additional CSS needed by default.
1309+
// 使用 ViewTransition 在页面间进行动画。
1310+
// 默认情况下不需要添加 CSS
13111311
return (
13121312
<ViewTransition>
13131313
{url === '/' ? <Home /> : <Details />}

0 commit comments

Comments
 (0)