Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pier25
on July 2, 2017
|
parent
|
context
|
favorite
| on:
React, Relay and GraphQL: Under the Hood of the Ti...
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.
scottmf
on July 2, 2017
[–]
They're not writing queries/API calls inside components. They're defining the components' data requirements alongside the components.
pier25
on July 2, 2017
|
parent
[–]
Now that I've paid more attention it seems I was wrong. They are actually injecting the query into the route.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
IMO coupling the data layer with the presentation layer is a terrible idea.