From 51a99b900573d5a2efe33aa34ec0f02e13d0259b Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Tue, 23 Apr 2024 22:03:01 -0400 Subject: [PATCH] Add testing sections --- .../blog/2024/04/01/react-19-upgrade-guide.md | 62 +++++++++++++++---- 1 file changed, 49 insertions(+), 13 deletions(-) diff --git a/src/content/blog/2024/04/01/react-19-upgrade-guide.md b/src/content/blog/2024/04/01/react-19-upgrade-guide.md index 0ea8c2bfd..7500551c7 100644 --- a/src/content/blog/2024/04/01/react-19-upgrade-guide.md +++ b/src/content/blog/2024/04/01/react-19-upgrade-guide.md @@ -208,7 +208,7 @@ function FactoryComponent() { ``` ### Removing `createFactory` {/*removing-createfactory*/} -`createFactory` was deprecated in [February 202 (v16.13.0)](https://legacy.reactjs.org/blog/2020/02/26/react-v16.13.0.html#deprecating-createfactory). +`createFactory` was deprecated in [February 2020 (v16.13.0)](https://legacy.reactjs.org/blog/2020/02/26/react-v16.13.0.html#deprecating-createfactory). Using `createFactory` was common before broad support for JSX, but it's rarely used today and can be replaced with JSX. In React 19, we're removing `createFactory` and you'll need to migrate to JSX: @@ -224,19 +224,52 @@ const button = createFactory('button'); const button =