Comment

Comment by swang

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}> ) }

parent swang 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton