alexmingoia / purescript-pux

Build type-safe web apps with PureScript.
https://www.purescript-pux.org
Other
566 stars 76 forks source link

Todomvc example doesn't work with React (instead of preact) #131

Closed jmatsushita closed 7 years ago

jmatsushita commented 7 years ago

Hi there,

I'm trying to reproduce issues I'm finding when trying to use react instead of preact (and will also try to reproduce the problems I encounter with preact) and I find that replacing preact with react in the todomvc example results in an app that compiles but doesn't work. Keyboard events in the input field are not registered (which is what I found in my app too).

I don't know if its related but when using spy from Debug.Trace on the event it seems that the preact event has the nativeEvent key while the react version doesn't (see screenshots below).

image

image

Any idea of what's going on?

Cheers,

Jun

alexmingoia commented 7 years ago

Moved to alexmingoia/pux-todomvc#2