From 4caa055c97af8e57599baa325e84f601fd822910 Mon Sep 17 00:00:00 2001 From: Kanika Date: Tue, 13 Jan 2026 17:56:56 +0530 Subject: [PATCH] Add getDerivedStateFromProps documentation for createClass Closes #1214 --- src/content/reference/react/Component.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/content/reference/react/Component.md b/src/content/reference/react/Component.md index 2509aa7598a..c1773d18b6c 100644 --- a/src/content/reference/react/Component.md +++ b/src/content/reference/react/Component.md @@ -1019,6 +1019,12 @@ Implementing `static getDerivedStateFromProps` in a class component is equivalen + + +**Note:** The `static getDerivedStateFromProps` method can also be used with components created via the `createClass` API (using the [`create-react-class`](https://www.npmjs.com/package/create-react-class) package). This allows legacy codebases to adopt the newer lifecycle pattern. + + + --- ## Usage {/*usage*/}