fable-compiler / fable-react

Fable bindings and helpers for React and React Native
MIT License
275 stars 66 forks source link

Make OnInput nicer #19

Closed forki closed 5 years ago

forki commented 7 years ago

https://github.com/fable-compiler/fable-elmish/blob/master/samples/react/todomvc/todomvc.fsx#L201

^^ is that the best way to do it?

alfonsogarciacaro commented 7 years ago

Yeah, that's a problem because there're many types of events so you need to cast ev to get proper typing. Not sure yet what's the best way to solve this.

MangelMaxime commented 7 years ago

Is there something to work here ? Or should we close ?

MangelMaxime commented 5 years ago

Not much we can do here.

And we provided a .Value member to make it a bit nicer.

MangelMaxime commented 5 years ago

@alfonsogarciacaro The latest version of Fable.React removed the Value sugar syntax should we re-add it with method extension as it was done?

alfonsogarciacaro commented 5 years ago

@MangelMaxime It should be there, you don't see it? You probably need to open Fable.React to activate the extension: https://github.com/fable-compiler/fable-react/blob/ea0962c2d693998cc4816a78cff8d384bca52e49/src/Fable.React.Helpers.fs#L58-L62

MangelMaxime commented 5 years ago

I saw it after ^^

Sorry :)