Reputation: 1690
I need the following, but without surrounding div required by ReactJS:
render() {
return (<div><input type="text" /></div>)
}
Upvotes: 0
Views: 40
Reputation: 960
surrounding div is not required
render() {
return (<input type="text" />);
}
https://jsfiddle.net/davinel/aw32n4kr/1/
Upvotes: 3