Skip to content

Commit ae33f40

Browse files
committed
docs: fix typo and broken links in versions.md and legacy.md
- 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
1 parent 2c7798d commit ae33f40

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/content/reference/react/legacy.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ These APIs are exported from the `react` package, but they are not recommended f
2828
These APIs were removed in React 19:
2929

3030
* [`createFactory`](https://18.react.dev/reference/react/createFactory): use JSX instead.
31-
* Class Components: [`static contextTypes`](https://18.react.dev//reference/react/Component#static-contexttypes): use [`static contextType`](#static-contexttype) instead.
32-
* Class Components: [`static childContextTypes`](https://18.react.dev//reference/react/Component#static-childcontexttypes): use [`static contextType`](#static-contexttype) instead.
33-
* Class Components: [`static getChildContext`](https://18.react.dev//reference/react/Component#getchildcontext): use [`Context`](/reference/react/createContext#provider) instead.
34-
* Class Components: [`static propTypes`](https://18.react.dev//reference/react/Component#static-proptypes): use a type system like [TypeScript](https://www.typescriptlang.org/) instead.
35-
* Class Components: [`this.refs`](https://18.react.dev//reference/react/Component#refs): use [`createRef`](/reference/react/createRef) instead.
31+
* Class Components: [`static contextTypes`](https://18.react.dev/reference/react/Component#static-contexttypes): use [`static contextType`](#static-contexttype) instead.
32+
* Class Components: [`static childContextTypes`](https://18.react.dev/reference/react/Component#static-childcontexttypes): use [`static contextType`](#static-contexttype) instead.
33+
* Class Components: [`static getChildContext`](https://18.react.dev/reference/react/Component#getchildcontext): use [`Context`](/reference/react/createContext#provider) instead.
34+
* Class Components: [`static propTypes`](https://18.react.dev/reference/react/Component#static-proptypes): use a type system like [TypeScript](https://www.typescriptlang.org/) instead.
35+
* Class Components: [`this.refs`](https://18.react.dev/reference/react/Component#refs): use [`createRef`](/reference/react/createRef) instead.

src/content/versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ For versions older than React 15, see [15.react.dev](https://15.react.dev).
256256
- [The Road to 1.0](https://legacy.reactjs.org/blog/2014/03/28/the-road-to-1.0.html)
257257
- [React v0.11.1](https://legacy.reactjs.org/blog/2014/07/25/react-v0.11.1.html)
258258
- [React v0.11.2](https://legacy.reactjs.org/blog/2014/09/16/react-v0.11.2.html)
259-
- [Introducing the JSX Specificaion](https://legacy.reactjs.org/blog/2014/09/03/introducing-the-jsx-specification.html)
259+
- [Introducing the JSX Specification](https://legacy.reactjs.org/blog/2014/09/03/introducing-the-jsx-specification.html)
260260

261261
**Releases**
262262
- [v0.11.2 (September 2014)](https://github.com/facebook/react/blob/main/CHANGELOG.md#0112-september-16-2014)

0 commit comments

Comments
 (0)