React - Apollo --Query--

Apollo <Query>, no more HOC no more wrap, we are able now to export the whole component (UI + Query) and reuse it without repeating code each time :

https://github.com/helabenkhalfallah/react-apollo-link-graphql/blob/master/src/app/users/components/UsersList.jsx

 

More details :

https://www.apollographql.com/docs/react/essentials/queries.html

 

best practices reactjs