News for hackers. Stuff that matters.
Re:React, Relay and GraphQL: Under the Hood of the Times Web... by jorblumesea on Saturday July 01, 2017 @01:27PM (#14677987)
React is a view library and it does this very well. It doesn't have all the bells and whistles like Angular and it's plethora of helpers ($HTTP etc) or complex dependency injection.

I would argue it's the perfect candidate for this purpose. What does a news site need? Articles? Ads? Basic nav? Angular or Ember would be overkill. And with Redux, it's very easy to think about complex UI state.

My only complaint with React is how large it is given what it actually does. Loading 100kb of JS (not Gzipped) seems very heavy.

Re:React, Relay and GraphQL: Under the Hood of the Times Web... by stephenboyd on Sunday July 02, 2017 @03:03AM (#14681279)
You might like Preact: https://github.com/developit/preact

It's a 3kb React alternative with the same API.

Re:React, Relay and GraphQL: Under the Hood of the Times Web... by jorblumesea on Sunday July 02, 2017 @03:11PM (#14683879)
Interesting, thank you