RM
Struggling to mock the Date in Jest using CRA? Need consistant global Date testing for React? This article provides the solution.
Connect WordPress Gravity Forms with Gatsby when using a headless CMS. Simply render forms as React Components and pass form data back securely.
Conditionally access JavaScript object without returning an error. Shorter and simpler to implement, and returns null or undefined. Alternative to Lodash get.
Recoil is a minimal experimental state management library for React. This article gives an overview of its benefits and how to use Recoil. If you have used Redux or React Context with Providers, the concept is very...
Functional components are far more efficient than class based components. Less code is needed to achieve the same goal.This post explains how functional components can carry out life-cycle events without needing to be...
A step by step process of deploying Gatsby static sites on AWS without Amplify. Solution to 'Deploy fails with "[ERROR]: Failed to deploy'. Gatsby deploy with AWS CI.
Access all files (not just images) from WordPress media library in Gatsby using custom resolvers and createremotefilenode. Uses gatsby-source-filesystem to add to query.
I recently published an article covering the development of a custom Gatsby Source Plugin. To help get off the ground faster I created a starter repository. I didn’t want to include too much details in the tutorial, so...
While researching the best way to implement React Context into my projects, I found that a lot of the articles were over-complicating what should be a very simple process. The code below is a slimmed down use case, so...
For a while now I have been working with WordPress as a back end CMS (one of the many micro services) and Gatsby to generate websites for my clients. To connect the two I am use a WordPress plugin called WP GraphQL, and...