Sergei G
Sergei G

Reputation: 1690

How to create input only control in reactjs

I need the following, but without surrounding div required by ReactJS:

render() {
    return (<div><input type="text" /></div>)
}

Upvotes: 0

Views: 40

Answers (1)

Davinel
Davinel

Reputation: 960

surrounding div is not required

render() {
  return (<input type="text" />);
}

https://jsfiddle.net/davinel/aw32n4kr/1/

Upvotes: 3

Related Questions