r/javascript • • Sep 16 '17

1 KB JavaScript library for building frontend applications.

https://github.com/jbucaran/hyperapp
316 Upvotes

50 comments sorted by

View all comments

Show parent comments

1

u/okwolf Sep 16 '17

https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/renderers/dom/stack/client/wrappers/ReactDOMInput.js#L60-L69

Keep in mind that a lot of the complexity in your example (and other parts of React) are the synthetic events for supporting legacy IE 8/9 under a single events system. Hyperapp targets IE 10+

2

u/localvoid Sep 16 '17

There is a perfect explanation why input value will be incorrect under certain circumstances, and if you think that this code https://github.com/hyperapp/hyperapp/blob/3ab5a1e483fc0520447b3280c52ec67c84f66ff1/src/app.js#L124-L126 covers this edge cases, then I really don't know what else to say.