Skip to content

Commit

Permalink
Added an article (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiemccrindle authored and kay-is committed Jul 8, 2018
1 parent 85efb37 commit e7834a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 05-properties.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h2>{props.customData}</h2>
// This allows components with dynamic content
var planets = ["earth", "mars", "venus"]

// If an array is used as "child node" each child needs a unique key-property
// If an array is used as a "child node" each child needs a unique key-property
var elements = planets.map(function(planet, index) {
return <MyComponent className="myClass" customData={planet} key={index}/>
})
Expand All @@ -42,4 +42,4 @@ <h2>{props.customData}</h2>
var renderTarget = document.getElementById("app")

ReactDOM.render(reactElement, renderTarget)
</script>
</script>

0 comments on commit e7834a4

Please sign in to comment.