arrow_back Stress Driven Development, and How to Avoid It
Refactoring React: from good to great arrow_forward
My React (Native) app speaks GraphQL
Submitted by Guillaume Diallo-Mulliez (@guitoof) on Tuesday, 9 October 2018
Section: Full talk Technical level: Intermediate
At BAM, we started using GraphQL alongside Apollo Client on a large internal app for a French car manufacturer. Along the way, we laughed and we cried … we hit some rocks, we fell down, we stood back up, we faced many questions. Frontend architecture and responsibility distribution, cache updating, error handling…
After one year, we came up with best practices for these challenges, and we eventually enjoy the developer experience.
I would love to share this year of adventure with GraphQL and Apollo Client in production so that you can learn from our mistakes and build on our best practices to help you build up your own GraphQL speaking React app.
This talk will provide you with everything you need to call a GraphQL API from your React (Native) app from basics to advanced concepts such as :
- What is GraphQL ?
- How do I fetch and post data from my React (Native) app to a GraphQL API using Apollo ?
- Authorization : How to make authentified requests ?
- Caching : Understand apollo flexible caching policy to give your users the best online & offline experience
- Loading : Easily ensure that your components display a loading state
- Errors handling : Implement defensive components with a developer friendly error handling
I work at BAM as an Architect/Developer where we develop awesome mobile apps using React Native. I joined the team back in 2015 when we started using RN. Since then we have grown into the largest team working with React Native in Paris with 65 Bamers.