Skip to content

Commit d1434ef

Browse files
committed
Bump ViewTransition docs to canary
1 parent 775d895 commit d1434ef

File tree

4 files changed

+57
-69
lines changed

4 files changed

+57
-69
lines changed

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,8 @@ root.render(
12451245
```json package.json hidden
12461246
{
12471247
"dependencies": {
1248-
"react": "experimental",
1249-
"react-dom": "experimental",
1248+
"react": "canary",
1249+
"react-dom": "canary",
12501250
"react-scripts": "latest"
12511251
},
12521252
"scripts": {
@@ -2441,8 +2441,8 @@ root.render(
24412441
```json package.json hidden
24422442
{
24432443
"dependencies": {
2444-
"react": "experimental",
2445-
"react-dom": "experimental",
2444+
"react": "canary",
2445+
"react-dom": "canary",
24462446
"react-scripts": "latest"
24472447
},
24482448
"scripts": {
@@ -3669,8 +3669,8 @@ root.render(
36693669
```json package.json hidden
36703670
{
36713671
"dependencies": {
3672-
"react": "experimental",
3673-
"react-dom": "experimental",
3672+
"react": "canary",
3673+
"react-dom": "canary",
36743674
"react-scripts": "latest"
36753675
},
36763676
"scripts": {
@@ -4878,8 +4878,8 @@ root.render(
48784878
```json package.json hidden
48794879
{
48804880
"dependencies": {
4881-
"react": "experimental",
4882-
"react-dom": "experimental",
4881+
"react": "canary",
4882+
"react-dom": "canary",
48834883
"react-scripts": "latest"
48844884
},
48854885
"scripts": {
@@ -6194,8 +6194,8 @@ root.render(
61946194
```json package.json hidden
61956195
{
61966196
"dependencies": {
6197-
"react": "experimental",
6198-
"react-dom": "experimental",
6197+
"react": "canary",
6198+
"react-dom": "canary",
61996199
"react-scripts": "latest"
62006200
},
62016201
"scripts": {
@@ -7492,8 +7492,8 @@ root.render(
74927492
```json package.json hidden
74937493
{
74947494
"dependencies": {
7495-
"react": "experimental",
7496-
"react-dom": "experimental",
7495+
"react": "canary",
7496+
"react-dom": "canary",
74977497
"react-scripts": "latest"
74987498
},
74997499
"scripts": {
@@ -8813,8 +8813,8 @@ root.render(
88138813
```json package.json hidden
88148814
{
88158815
"dependencies": {
8816-
"react": "experimental",
8817-
"react-dom": "experimental",
8816+
"react": "canary",
8817+
"react-dom": "canary",
88188818
"react-scripts": "latest"
88198819
},
88208820
"scripts": {
@@ -10154,8 +10154,8 @@ root.render(
1015410154
```json package.json hidden
1015510155
{
1015610156
"dependencies": {
10157-
"react": "experimental",
10158-
"react-dom": "experimental",
10157+
"react": "canary",
10158+
"react-dom": "canary",
1015910159
"react-scripts": "latest"
1016010160
},
1016110161
"scripts": {
@@ -11440,8 +11440,8 @@ root.render(
1144011440
```json package.json hidden
1144111441
{
1144211442
"dependencies": {
11443-
"react": "experimental",
11444-
"react-dom": "experimental",
11443+
"react": "canary",
11444+
"react-dom": "canary",
1144511445
"react-scripts": "latest"
1144611446
},
1144711447
"scripts": {
@@ -12839,8 +12839,8 @@ root.render(
1283912839
```json package.json hidden
1284012840
{
1284112841
"dependencies": {
12842-
"react": "experimental",
12843-
"react-dom": "experimental",
12842+
"react": "canary",
12843+
"react-dom": "canary",
1284412844
"react-scripts": "latest"
1284512845
},
1284612846
"scripts": {
@@ -14177,8 +14177,8 @@ root.render(
1417714177
```json package.json hidden
1417814178
{
1417914179
"dependencies": {
14180-
"react": "experimental",
14181-
"react-dom": "experimental",
14180+
"react": "canary",
14181+
"react-dom": "canary",
1418214182
"react-scripts": "latest"
1418314183
},
1418414184
"scripts": {

src/content/reference/react/ViewTransition.md

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
---
22
title: <ViewTransition>
3-
version: experimental
3+
version: canary
44
---
55

6-
<Experimental>
6+
<Canary>
77

8-
**This API is experimental and is not available in a stable version of React yet.**
8+
**The `<ViewTransition />` API is currently only available in React’s Canary and Experimental channels.**
99

10-
You can try it by upgrading React packages to the most recent experimental version:
10+
[Learn more about React’s release channels here.](/community/versioning-policy#all-release-channels)
1111

12-
- `react@experimental`
13-
- `react-dom@experimental`
14-
- `eslint-plugin-react-hooks@experimental`
15-
16-
Experimental versions of React may contain bugs. Don't use them in production.
17-
18-
</Experimental>
12+
</Canary>
1913

2014
<Intro>
2115

@@ -341,8 +335,8 @@ button:hover {
341335
```json package.json hidden
342336
{
343337
"dependencies": {
344-
"react": "experimental",
345-
"react-dom": "experimental",
338+
"react": "canary",
339+
"react-dom": "canary",
346340
"react-scripts": "latest"
347341
}
348342
}
@@ -581,8 +575,8 @@ button:hover {
581575
```json package.json hidden
582576
{
583577
"dependencies": {
584-
"react": "experimental",
585-
"react-dom": "experimental",
578+
"react": "canary",
579+
"react-dom": "canary",
586580
"react-scripts": "latest"
587581
}
588582
}
@@ -821,8 +815,8 @@ button:hover {
821815
```json package.json hidden
822816
{
823817
"dependencies": {
824-
"react": "experimental",
825-
"react-dom": "experimental",
818+
"react": "canary",
819+
"react-dom": "canary",
826820
"react-scripts": "latest"
827821
}
828822
}
@@ -1025,8 +1019,8 @@ button:hover {
10251019
```json package.json hidden
10261020
{
10271021
"dependencies": {
1028-
"react": "experimental",
1029-
"react-dom": "experimental",
1022+
"react": "canary",
1023+
"react-dom": "canary",
10301024
"react-scripts": "latest"
10311025
}
10321026
}
@@ -1290,8 +1284,8 @@ button:hover {
12901284
```json package.json hidden
12911285
{
12921286
"dependencies": {
1293-
"react": "experimental",
1294-
"react-dom": "experimental",
1287+
"react": "canary",
1288+
"react-dom": "canary",
12951289
"react-scripts": "latest"
12961290
}
12971291
}
@@ -1528,8 +1522,8 @@ button:hover {
15281522
```json package.json hidden
15291523
{
15301524
"dependencies": {
1531-
"react": "experimental",
1532-
"react-dom": "experimental",
1525+
"react": "canary",
1526+
"react-dom": "canary",
15331527
"react-scripts": "latest"
15341528
}
15351529
}
@@ -1780,8 +1774,8 @@ button:hover {
17801774
```json package.json hidden
17811775
{
17821776
"dependencies": {
1783-
"react": "experimental",
1784-
"react-dom": "experimental",
1777+
"react": "canary",
1778+
"react-dom": "canary",
17851779
"react-scripts": "latest"
17861780
}
17871781
}
@@ -2109,8 +2103,8 @@ button:hover {
21092103
```json package.json hidden
21102104
{
21112105
"dependencies": {
2112-
"react": "experimental",
2113-
"react-dom": "experimental",
2106+
"react": "canary",
2107+
"react-dom": "canary",
21142108
"react-scripts": "latest"
21152109
}
21162110
}

src/content/reference/react/addTransitionType.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
11
---
2-
title: unstable_addTransitionType
3-
version: experimental
2+
title: addTransitionType
3+
version: canary
44
---
55

6-
<Experimental>
6+
<Canary>
77

8-
**This API is experimental and is not available in a stable version of React yet.**
8+
**The `addTransitionType` API is currently only available in React’s Canary and Experimental channels.**
99

10-
You can try it by upgrading React packages to the most recent experimental version:
10+
[Learn more about React’s release channels here.](/community/versioning-policy#all-release-channels)
1111

12-
- `react@experimental`
13-
- `react-dom@experimental`
14-
- `eslint-plugin-react-hooks@experimental`
15-
16-
Experimental versions of React may contain bugs. Don't use them in production.
17-
18-
</Experimental>
12+
</Canary>
1913

2014
<Intro>
2115

22-
`unstable_addTransitionType` lets you specify the cause of a transition.
16+
`addTransitionType` lets you specify the cause of a transition.
2317

2418

2519
```js
2620
startTransition(() => {
27-
unstable_addTransitionType('my-transition-type');
21+
addTransitionType('my-transition-type');
2822
setState(newState);
2923
});
3024
```

src/sidebarReference.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
{
116116
"title": "<ViewTransition>",
117117
"path": "/reference/react/ViewTransition",
118-
"version": "experimental"
118+
"version": "canary"
119119
}
120120
]
121121
},
@@ -127,6 +127,11 @@
127127
"title": "act",
128128
"path": "/reference/react/act"
129129
},
130+
{
131+
"title": "addTransitionType",
132+
"path": "/reference/react/addTransitionType",
133+
"version": "canary"
134+
},
130135
{
131136
"title": "cache",
132137
"path": "/reference/react/cache"
@@ -168,11 +173,6 @@
168173
"title": "experimental_taintUniqueValue",
169174
"path": "/reference/react/experimental_taintUniqueValue",
170175
"version": "experimental"
171-
},
172-
{
173-
"title": "unstable_addTransitionType",
174-
"path": "/reference/react/addTransitionType",
175-
"version": "experimental"
176176
}
177177
]
178178
},

0 commit comments

Comments
 (0)