News for hackers. Stuff that matters.
Re:Things every React.js beginner should know by rakoo on Wednesday January 27, 2016 @04:00AM (#10979025)
I have discovered this little gem, allowing you to do the same in pure Javascript: https://github.com/leeoniya/domvm

The equivalent would be something like

  function() selected { return true }
  ["h2", {class: function() {if (selected()) {return "selected"}}}, "Hello"]
Not as clean, but still usable IMO

There are no comments on this comment yet.