News for hackers. Stuff that matters.
Re:Hacker News API by insin on Wednesday October 08, 2014 @06:57AM (#8426249)
Here's another React version which also does comments (and allows you to fold them - I needed to write a userscript for that before!). It's using react-router to switch between top stories, comments, individual comment and user profile pages.

http://insin.github.io/react-hn

I've just gone for it with Firebase's React mixin, binding everything as an object, since their devs in this thread don't seem concerned about rate limiting. The mixin seems to throw an error every time I try to unbind, which I'm just catching and logging for now.

Edit: I just watched this comment pop up live in my version - pretty neat :)

Re:Hacker News API by ssorallen on Wednesday October 08, 2014 @11:48AM (#8427516)
Nicely done! Binding every HN story as an object would have been the simplest approach, that makes sense.

Is the source available somewhere?

Re:Hacker News API by insin on Wednesday October 08, 2014 @12:16PM (#8427712)
Original source is here until I set up a proper repo (after modularising and setting up a build process):

https://github.com/insin/insin.github.com/blob/master/react-...