diff --git a/ReactBasics.md b/ReactBasics.md index 7d6e357..2d9aa34 100755 --- a/ReactBasics.md +++ b/ReactBasics.md @@ -135,13 +135,13 @@ ReactDOM.render( JSX can be split onto multiple lines: ```JavaScript -const formatLocation = function(location){ - return location + "!!" +const formatUser = function(user){ + return user + "!!" } -const location = "Matt"; +const user = "Matt"; const myJSX =
-

Hello, {formatLocation(location)}

+

Hello, {formatUser(user)}

Welcome to the app