DavidWells / isomorphic-react-example

Deprecated! ReactJS + NodeJS ( express ) demo tutorial with video. Universal/Isomorphic JS = Shared JavaScript that runs on both the client & server.
http://davidwells.io
MIT License
1.69k stars 272 forks source link

Cannot read property "toString" from undefined #20

Open brusand opened 8 years ago

brusand commented 8 years ago

Hi David,

I have an issue with the renderOnServer, i the CommentList function var commentNodes = this.props.data.map(function (comment) { return ( React.createElement(Comment, {author: 'comment.author'}, comment.text) ); }); comment.text raise the exception : Cannot read property "toString" from undefined

Any idea ?

Thx Bruno