Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



They're not writing queries/API calls inside components. They're defining the components' data requirements alongside the components.


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: