Understanding Fragments in GraphQL

October 01, 2019

The "QL" in GraphQL stands for the query language, and a key, yet often overlooked feature of the language is GraphQL fragments. A GraphQL query document can contain definitions for operations and fragments. Fragments are selection sets that can be reused in multiple operations. Let…

Continue Reading →

Improving Code with useReducer

September 24, 2019

The next in our series of articles from the Second Edition of Learning React is about useReducer . Consider the Checkbox component. This component is a perfect example of a component that holds simple state. The box is either checked or not checked. checked is the state value…

Continue Reading →

Getting Familiar with useEffect: Part Two

September 17, 2019

Last week , we took a closer look at the useEffect Hook, but we still have yet to touch on one of the function's most important features: the dependency array . useEffect is designed to work in conjunction with other stateful Hooks like useState and useReducer . React will re…

Continue Reading →

Getting Familiar with useEffect: Part One

September 10, 2019

Rendering is the heartbeat of a React application. When something changes (props, state), the component tree re-renders, reflecting that change in the user interface. But what happens when we need to do something after a render? As you might imagine, there's a Hook for that. Consider…

Continue Reading →

Using Netlify Dev with Apollo Server Lambda: An Appreciation

July 30, 2019

A little over a year ago, we needed to publish the GraphQL Workshop website and decided to use Netlify for hosting. Before we could deploy the site, I needed to set up the security certificate to enable HTTPS. Pre-Netlify, this used to take forever, so I carved out some time on the…

Continue Reading →

A Quick Intro to Apollo Client

July 16, 2019

A few months ago, we posted an article about how to fetch data from a GraphQL API . In it, we looked at the Snowtooth API , a fake ski resort with a real GraphQL API, and we were able to send queries to get data and send mutations to change data. We all had a great time. Now that a…

Continue Reading →

Getting Started with Node.js

July 11, 2019

It has been 8 years since we made the decision to build everything using JavaScript and Node.js. It was a good decision. It has been a lot of fun watching JavaScript, Node, and React explode in popularity. There are great opportunities out there for JavaScript professionals these days…

Continue Reading →