From 3aa40ba6a34010718fbb05b23fc4505967b13905 Mon Sep 17 00:00:00 2001 From: Lewis Blackwood Date: Thu, 27 Oct 2016 13:01:04 +0100 Subject: [PATCH] Correct usage of formatName() function in docs (#8122) The code section above these changes defines a `formatName` function that expects a parameter `user`. The code section containing these changes incorrectly called `formatName(user.name)`. For those following along with CodePen, this section should correctly call `formatName(user)`. --- docs/introducing-jsx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/introducing-jsx.md b/docs/introducing-jsx.md index d05f1575..56e7b98e 100644 --- a/docs/introducing-jsx.md +++ b/docs/introducing-jsx.md @@ -59,7 +59,7 @@ This means that you can use JSX inside of `if` statements and `for` loops, assig ```js{3,5} function getGreeting(user) { if (user) { - return

Hello, {formatName(user.name)}!

; + return

Hello, {formatName(user)}!

; } else { return

Hello, Stranger.

; }