Leigh Halliday is a full-stack developer specializing in React and Ruby on Rails. He works for FlipGive, writes on his blog, and regularly posts coding tutorials on YouTube.
With promises, we get the ability to use async/await — syntax that can convert nested, hard-to-read functions into straightforward and easy-to-digest code. Let's take a look at how we can convert our own legacy code or other browser APIs such as geolocation, which still rely on callbacks, into Promise-ready functions.
GraphQL isn't just a way to communicate with remote APIs—it is a data query and manipulation language for data in general. Apollo Link State gives you the ability to manage your local state by performing queries and mutations. This provides a single interface to all of your data, both local and remote, avoiding the need to include another state management library such as Redux or MobX in your app.
GraphQL APIs are the future, but how do you get started and use them right now in your React app? This is easily done using the Apollo library, which can be configured quickly using Apollo Boost, or with more fine-grained control using Apollo Client along with Apollo Link. In this article, we'll show how to fully integrate Apollo into your React app from setting up the client to executing a query and displaying its results.
Subscribe to be the first to get our expert-written articles and tutorials for developers!
<h5 class="SubTitle SubTitle--xl u-lh1 u-mb1 u-mt1">Thanks for subscribing!</h5>
<p class="Text--b0 u-mb1 u-lh1">We'll send you weekly updates with the latest news and tips.</p>
You have the right to request deletion of your Personal Information at any time.
You can also ask us not to pass your Personal Information to third parties here: Do Not Sell My Info
We see that you have already chosen to receive marketing materials from us. If you wish to change this at any time you may do so by clicking here.
Thank you for your continued interest in Progress. Based on either your previous activity on our websites or our ongoing relationship, we will keep you updated on our products, solutions, services, company news and events. If you decide that you want to be removed from our mailing lists at any time, you can change your contact preferences by clicking here.