Skip to content

Commit b38fd50

Browse files
committed
wip
1 parent e1b0ed1 commit b38fd50

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/content/blog/2025/04/01/react-labs-what-we-have-been-working-on-april-2025.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ We're also sharing updates on new features currently in development:
4242

4343
# New Experimental Features {/*new-experimental-features*/}
4444

45-
Today we're sharing two new experimental feautres: View Transitions and Activity.
45+
Today we're sharing two new experimental features: View Transitions and Activity.
4646

4747
These experimental features have been tested in production and we are confident they're stable, but the final API might change while we iterate on feedback.
4848

@@ -51,7 +51,7 @@ You can try them by upgrading React packages to the most recent experimental ver
5151
- `react@experimental`
5252
- `react-dom@experimental`
5353

54-
Read more to see how to use these features in your app, or checkout the new docs published today:
54+
Read more to see how to use these features in your app, or check out the new docs published today:
5555

5656
- [`<ViewTransition>`](/reference/react/ViewTransition): A component lets you activate an animation for a Transition.
5757
- [`addTransitionType`](/reference/react/addTransitionType): A function that allows you to specify the cause of a Transition.
@@ -90,7 +90,7 @@ const deferred = useDeferredValue(value);
9090
</Suspense>
9191
```
9292

93-
By default, these animations have the [default CSS animations for View Transitions](https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API/Using#customizing_your_animations) applied (most are given a default smooth cross-fade). You can use [view transition psuedo-selectors](https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API/Using#the_view_transition_pseudo-element_tree) to define "how" the animation runs. For example, using `*` we can change the default for all animations:
93+
By default, these animations have the [default CSS animations for View Transitions](https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API/Using#customizing_your_animations) applied (most are given a default smooth cross-fade). You can use [view transition pseudo-selectors](https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API/Using#the_view_transition_pseudo-element_tree) to define "how" the animation runs. For example, using `*` we can change the default for all animations:
9494

9595
```
9696
// "how" to animate.
@@ -104,7 +104,7 @@ By default, these animations have the [default CSS animations for View Transitio
104104

105105
When the DOM updates in an animation trigger such as `startTransition`, `useDeferredValue`, or switching Suspense fallbacks to content, React will use [declarative heuristics](/reference/react/ViewTransition#viewtransition) to automatically determine which `<ViewTransition>` components to activate for the animation. The browser will then run the animation that's defined in CSS.
106106

107-
If you're familar with the browser view transition APIs and curious how we've built support for them into React, checkout [How does View Transitions Work](/reference/react/ViewTransition#how-does-viewtransition-work) in the docs.
107+
If you're familiar with the browser view transition APIs and curious how we've built support for them into React, check out [How does `<ViewTransition>` Work](/reference/react/ViewTransition#how-does-viewtransition-work) in the docs.
108108

109109
In this post, let's take a look at a few examples of how to use View Transitions.
110110

@@ -1278,7 +1278,7 @@ In our example app above, notice that there are already animations when you clic
12781278

12791279
### Animating navigations {/*animating-navigations*/}
12801280

1281-
Our app includes a Suspense-enabled router, with [page transitions already marked as Transitions](/reference/react/useTransition#building-a-suspense-enabled-router), which means navigations are performed with `startTranstion`:
1281+
Our app includes a Suspense-enabled router, with [page transitions already marked as Transitions](/reference/react/useTransition#building-a-suspense-enabled-router), which means navigations are performed with `startTransition`:
12821282

12831283
```js
12841284
function navigate(url) {
@@ -2467,7 +2467,7 @@ If you're curious how this works, see the docs for [How does `<ViewTransition>`
24672467

24682468
By default, `<ViewTransition>` includes the default cross-fade from the browser.
24692469

2470-
To customize animations, you can provide props to the `<ViewTranstion>` component to specify which animations to use, based on [how the `<ViewTransition>` activates](/reference/react/ViewTransition#props).
2470+
To customize animations, you can provide props to the `<ViewTransition>` component to specify which animations to use, based on [how the `<ViewTransition>` activates](/reference/react/ViewTransition#props).
24712471

24722472
For example, we can slow down the `default` cross fade animation:
24732473

@@ -3676,7 +3676,7 @@ To do this you can add a unique `name` to the `<ViewTransition>`:
36763676
```js
36773677
<ViewTransition name={`video-${video.id}`}>
36783678
<Thumbnail video={video} />
3679-
</ViewTranstion>
3679+
</ViewTransition>
36803680
```
36813681

36823682
Now the video thumbnail animates between the two pages:
@@ -4871,7 +4871,7 @@ root.render(
48714871

48724872
</Sandpack>
48734873

4874-
By default, React automatically generates a unique `name` for each element activated for a transition (see [How does `<ViewTransiton>` work](/reference/react/ViewTransition#how-does-viewtransition-work)). When React sees a transition where a `<ViewTransiton>` with a `name` is removed and a new `<ViewTransition>` with the same `name` is added, it will activate a shared element transtion.
4874+
By default, React automatically generates a unique `name` for each element activated for a transition (see [How does `<ViewTransiton>` work](/reference/react/ViewTransition#how-does-viewtransition-work)). When React sees a transition where a `<ViewTransiton>` with a `name` is removed and a new `<ViewTransition>` with the same `name` is added, it will activate a shared element transition.
48754875

48764876
For more info, see the docs for [Animating a Shared Element](/reference/react/ViewTransition#animating-a-shared-element).
48774877

0 commit comments

Comments
 (0)