From 88a2e53024f22e778c578a2b10cfe131f38c0a53 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 4 Oct 2022 11:34:26 +0100 Subject: [PATCH] fix typo --- beta/src/content/apis/react/createFactory.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beta/src/content/apis/react/createFactory.md b/beta/src/content/apis/react/createFactory.md index 43cc26f2..8bd98951 100644 --- a/beta/src/content/apis/react/createFactory.md +++ b/beta/src/content/apis/react/createFactory.md @@ -190,7 +190,7 @@ function Heading({ isSubheading, ...props }) { To do the same in JSX, you need to rename your variable to start with an uppercase letter like `Type`: ```js {2,3} -function Heading({ size, ...props }) { +function Heading({ isSubheading, ...props }) { let Type = isSubheading ? 'h2' : 'h1'; return ; }