ray@allthisisthat.com (4) [Avatar] Offline
#1
The code listing is missing a line as shown in my code below, and it isn't discussed. Without this line, which I discovered in the online demo, the app doesn't render the 'Comment' element:

var Post = React.createClass({
propTypes: {
user: React.PropTypes.string.isRequired,
content: React.PropTypes.string.isRequired,
id: React.PropTypes.number.isRequired,
},

render: function() {
return (
React.createElement("div", {className: "post"},
React.createElement("h2", {
className: "postAuthor",
id: this.props.id
},
this.props.user,
React.createElement("span", {className: "postBody"},
this.props.content
)
),
this.props.children // this line is missing in the MEAP v03 book
)
); // end of 'return'
} // end render function
}); // end var 'Post'
mark (56) [Avatar] Offline
#2
Author here; thanks for catching this! smilie Working to weed out any possible errors that slip in between the source code and chapters — let me know if you find anything else!