From ae33f40b0655ea559f5c0d0cb8093a1c25051cb3 Mon Sep 17 00:00:00 2001 From: Ali Baig Date: Wed, 29 Oct 2025 14:49:59 +0500 Subject: [PATCH 1/2] docs: fix typo and broken links in versions.md and legacy.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Corrected typo "Specificaion" → "Specification" in versions.md - Fixed broken links (double slash) in legacy.md pointing to https://18.react.dev/reference/ - All changes are low-risk, improve documentation clarity, and do not touch React engine code --- src/content/reference/react/legacy.md | 10 +++++----- src/content/versions.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/content/reference/react/legacy.md b/src/content/reference/react/legacy.md index f4e3ebe289f..a3e31e298ec 100644 --- a/src/content/reference/react/legacy.md +++ b/src/content/reference/react/legacy.md @@ -28,8 +28,8 @@ These APIs are exported from the `react` package, but they are not recommended f These APIs were removed in React 19: * [`createFactory`](https://18.react.dev/reference/react/createFactory): use JSX instead. -* Class Components: [`static contextTypes`](https://18.react.dev//reference/react/Component#static-contexttypes): use [`static contextType`](#static-contexttype) instead. -* Class Components: [`static childContextTypes`](https://18.react.dev//reference/react/Component#static-childcontexttypes): use [`static contextType`](#static-contexttype) instead. -* Class Components: [`static getChildContext`](https://18.react.dev//reference/react/Component#getchildcontext): use [`Context`](/reference/react/createContext#provider) instead. -* Class Components: [`static propTypes`](https://18.react.dev//reference/react/Component#static-proptypes): use a type system like [TypeScript](https://www.typescriptlang.org/) instead. -* Class Components: [`this.refs`](https://18.react.dev//reference/react/Component#refs): use [`createRef`](/reference/react/createRef) instead. +* Class Components: [`static contextTypes`](https://18.react.dev/reference/react/Component#static-contexttypes): use [`static contextType`](#static-contexttype) instead. +* Class Components: [`static childContextTypes`](https://18.react.dev/reference/react/Component#static-childcontexttypes): use [`static contextType`](#static-contexttype) instead. +* Class Components: [`static getChildContext`](https://18.react.dev/reference/react/Component#getchildcontext): use [`Context`](/reference/react/createContext#provider) instead. +* Class Components: [`static propTypes`](https://18.react.dev/reference/react/Component#static-proptypes): use a type system like [TypeScript](https://www.typescriptlang.org/) instead. +* Class Components: [`this.refs`](https://18.react.dev/reference/react/Component#refs): use [`createRef`](/reference/react/createRef) instead. diff --git a/src/content/versions.md b/src/content/versions.md index abb32cec456..db4e4e1dd12 100644 --- a/src/content/versions.md +++ b/src/content/versions.md @@ -256,7 +256,7 @@ For versions older than React 15, see [15.react.dev](https://15.react.dev). - [The Road to 1.0](https://legacy.reactjs.org/blog/2014/03/28/the-road-to-1.0.html) - [React v0.11.1](https://legacy.reactjs.org/blog/2014/07/25/react-v0.11.1.html) - [React v0.11.2](https://legacy.reactjs.org/blog/2014/09/16/react-v0.11.2.html) -- [Introducing the JSX Specificaion](https://legacy.reactjs.org/blog/2014/09/03/introducing-the-jsx-specification.html) +- [Introducing the JSX Specification](https://legacy.reactjs.org/blog/2014/09/03/introducing-the-jsx-specification.html) **Releases** - [v0.11.2 (September 2014)](https://github.com/facebook/react/blob/main/CHANGELOG.md#0112-september-16-2014) From dbce47036ff070bd9fce2414c1911c865d3384af Mon Sep 17 00:00:00 2001 From: Ali Baig Date: Wed, 29 Oct 2025 14:56:00 +0500 Subject: [PATCH 2/2] docs: fix grammar and typos in multiple markdown files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Corrected possessive "it's own" → "its own" in sunsetting-create-react-app.md and react-labs-view-transitions-activity-and-more.md (11 occurrences) - Fixed typo "inital mount" → "initial mount" in StrictMode.md - All changes improve clarity and readability without affecting code --- .../2025/02/14/sunsetting-create-react-app.md | 2 +- ...labs-view-transitions-activity-and-more.md | 20 +++++++++---------- src/content/reference/react/StrictMode.md | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/content/blog/2025/02/14/sunsetting-create-react-app.md b/src/content/blog/2025/02/14/sunsetting-create-react-app.md index 9ced6231c36..43f81dbd1f7 100644 --- a/src/content/blog/2025/02/14/sunsetting-create-react-app.md +++ b/src/content/blog/2025/02/14/sunsetting-create-react-app.md @@ -135,7 +135,7 @@ import {RouterProvider, createBrowserRouter} from 'react-router'; import Home from './Home'; import Dashboard from './Dashboard'; -// ✅ Each route has it's own URL +// ✅ Each route has its own URL const router = createBrowserRouter([ {path: '/', element: }, {path: '/dashboard', element: } diff --git a/src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md b/src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md index 9b6095f8b21..b213fb0fc7d 100644 --- a/src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md +++ b/src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md @@ -1577,7 +1577,7 @@ export default function Page({ heading, children }) { {/* Opt-out of ViewTransition for the content. */} - {/* Content can define it's own ViewTransition. */} + {/* Content can define its own ViewTransition. */}
{children}
@@ -2791,7 +2791,7 @@ export default function Page({ heading, children }) {
{/* Opt-out of ViewTransition for the content. */} - {/* Content can define it's own ViewTransition. */} + {/* Content can define its own ViewTransition. */}
{children}
@@ -3985,7 +3985,7 @@ export default function Page({ heading, children }) {
{/* Opt-out of ViewTransition for the content. */} - {/* Content can define it's own ViewTransition. */} + {/* Content can define its own ViewTransition. */}
{children}
@@ -5247,7 +5247,7 @@ export default function Page({ heading, children }) {
{/* Opt-out of ViewTransition for the content. */} - {/* Content can define it's own ViewTransition. */} + {/* Content can define its own ViewTransition. */}
{children}
@@ -6519,7 +6519,7 @@ export default function Page({ heading, children }) {
{/* Opt-out of ViewTransition for the content. */} - {/* Content can define it's own ViewTransition. */} + {/* Content can define its own ViewTransition. */}
{children}
@@ -7840,7 +7840,7 @@ export default function Page({ heading, children }) {
{/* Opt-out of ViewTransition for the content. */} - {/* Content can define it's own ViewTransition. */} + {/* Content can define its own ViewTransition. */}
{children}
@@ -9167,7 +9167,7 @@ export default function Page({ heading, children }) {
{/* Opt-out of ViewTransition for the content. */} - {/* Content can define it's own ViewTransition. */} + {/* Content can define its own ViewTransition. */}
{children}
@@ -10482,7 +10482,7 @@ export default function Page({ heading, children }) {
{/* Opt-out of ViewTransition for the content. */} - {/* Content can define it's own ViewTransition. */} + {/* Content can define its own ViewTransition. */}
{children}
@@ -11853,7 +11853,7 @@ export default function Page({ heading, children }) {
{/* Opt-out of ViewTransition for the content. */} - {/* Content can define it's own ViewTransition. */} + {/* Content can define its own ViewTransition. */}
{children}
@@ -13191,7 +13191,7 @@ export default function Page({ heading, children }) {
{/* Opt-out of ViewTransition for the content. */} - {/* Content can define it's own ViewTransition. */} + {/* Content can define its own ViewTransition. */}
{children}
diff --git a/src/content/reference/react/StrictMode.md b/src/content/reference/react/StrictMode.md index 16e8d9e6065..d1edaa225e9 100644 --- a/src/content/reference/react/StrictMode.md +++ b/src/content/reference/react/StrictMode.md @@ -1226,7 +1226,7 @@ li { -Now on inital mount in StrictMode, the ref callbacks are all setup, cleaned up, and setup again: +Now on initial mount in StrictMode, the ref callbacks are all setup, cleaned up, and setup again: ``` ...