4 ms·
You can do that right now with CoffeeScript+React and it looks almost identical: {ul, li} = React.DOM # require in like and comment components here...
by dugmartin 11y ago
You can do that right now with CoffeeScript+React and it looks almost identical:
{ul, li} = React.DOM
# require in like and comment components here...
ul {},
for event in @events
li {},
if event.type is "like"
like {event: event}
else if event.type is "comment"
comment {event: event}
- judofyr 11y agoYup, that looks pretty good. Imba was started before React was available so it wasn't an option back then. As for today, the language integrates tags in a much nicer way than what's possible with CoffeeScript + React. This especially pays off performance-wise. Although Imba was started before React it should be noted that it didn't include virtual diffing until React showed that it worked.