3 ms·
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 (
by swang 10y ago
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}>
)
}
- mpc 10y agoyes, that will break.