Update ReactBasics.md

master
Matt Huntington 8 years ago committed by GitHub
parent b7d682011e
commit 1963f89142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 =
<section>
<h1>Hello, {formatLocation(location)}</h1>
<h1>Hello, {formatUser(user)}</h1>
Welcome to the app
</section>

Loading…
Cancel
Save