diff --git a/beta/src/content/reference/react/useCallback.md b/beta/src/content/reference/react/useCallback.md index cdce0224..8d94f01a 100644 --- a/beta/src/content/reference/react/useCallback.md +++ b/beta/src/content/reference/react/useCallback.md @@ -385,9 +385,9 @@ button[type="button"] { #### Always re-rendering a component {/*always-re-rendering-a-component*/} -In this example, the `ShoppingForm` implementation is also **artificially slowed down** so that you can see what happens when some React component you're rendering is genuinely slow. Try incrementing the counter and toggling the theme. +In this example, the `ShippingForm` implementation is also **artificially slowed down** so that you can see what happens when some React component you're rendering is genuinely slow. Try incrementing the counter and toggling the theme. -Unlike in the previous example, toggling the theme is also slow now! This is because **there is no `useCallback` call in this version,** so `handleSubmit` is always a new function, and the slowed down `ShoppingForm` component can't skip re-rendering. +Unlike in the previous example, toggling the theme is also slow now! This is because **there is no `useCallback` call in this version,** so `handleSubmit` is always a new function, and the slowed down `ShippingForm` component can't skip re-rendering.