xored / scala-js-react

ScalaJS interface for Facebook React
Apache License 2.0
133 stars 13 forks source link

Type-safe way to `linkState`? #17

Open freewind opened 9 years ago

freewind commented 9 years ago

In javascript version of react, we can use linkState addon:

<input type="text" placeholder="name" valueLink={this.linkState('name')} />

How to do the same with scala-js-react, in a type-safe way?