News for hackers. Stuff that matters.
Re:React, Relay and GraphQL: Under the Hood of the Times Web... by pier25 on Saturday July 01, 2017 @09:59PM (#14680384)
Is anyone else here writing their GraphQL queries / REST calls in their components?

IMO coupling the data layer with the presentation layer is a terrible idea.

Re:React, Relay and GraphQL: Under the Hood of the Times Web... by scottmf on Saturday July 01, 2017 @10:55PM (#14680607)
They're not writing queries/API calls inside components. They're defining the components' data requirements alongside the components.
Re:React, Relay and GraphQL: Under the Hood of the Times Web... by pier25 on Sunday July 02, 2017 @12:56AM (#14680981)
Now that I've paid more attention it seems I was wrong. They are actually injecting the query into the route.