Hacker News new | past | comments | ask | show | jobs | submit login

isn't the jsx also wrong? you can't have 2 separate div's like that in react right? you'd have to wrap them in another div.

render: function() { return ( <div className="title">{this.state.title}/> <div className="button" onClick={this.handleClick}> ) }




yes, that will break.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: