4 ms·
Show HN: "React" in 50 lines of vanilla JS
- projectant 9y agoFor references, I'm taking implementing the "MyComponent" example from the "Broken Promise of Web Components"[1] article, in minimal JS. One thing it's meant to show you don't need to "transpile" from a DSL to do this stuff. Simplifying the way I build web apps means a great deal to me. [1] https://dmitriid.com/blog/2017/03/the-broken-promise-of-web-components/ https://dmitriid.com/blog/2017/03/the-broken-promise-of-web-...
- continuational 9y agoThis doesn't seem to update when "data" is updated. Without that, it's not even a little bit like React...
- projectant 9y agoNo isn't the data binding the Flux part of React, not React itself? I think so... but anyway don't you think this code is good?