News for hackers. Stuff that matters.
Re:RE:DOM – Tiny DOM library by lexicality on Sunday August 28, 2016 @07:16PM (#12379005)
I'm torn.

On the one hand this seems far too clever for it's own good and in the same vein as coffeescript where it's really easy for you to write efficient & compact code which somehow turns into complete garbage when you try to read it two weeks later.

On the other hand it looks super neat, has 0 dependencies and looks like React but without requiring any kind of build system.

I think I might need to try it in a side project.

Re:RE:DOM – Tiny DOM library by jonahx on Sunday August 28, 2016 @09:00PM (#12379355)
If you're looking for a very small (~10K), dependency-free alternative to react, check out http://mithril.js.org/, which is far more powerful and from which it seems this project has taken some inspiration (mount, props, and the general syntax are a few of the similarities I see).
Re:RE:DOM – Tiny DOM library by spicyj on Sunday August 28, 2016 @11:16PM (#12379783)
If you like React but want to avoid a build system, you can always do

  var form = React.createFactory('form');
  form({...}, ...);
or

  var e = React.createElement;
  e('form', {...}, ...);
Re:RE:DOM – Tiny DOM library by pkstn on Monday August 29, 2016 @02:01AM (#12380287)
Check out my other project as well: https://frzr.js.org - it's quite similar but with a bit easier syntax :)