I remember being with Matt Zabriskie when he hatched the idea of a vanilla JavaScript version of AngularJS’s $http service. It seemed like a brilliant idea and that night in his hotel room at MidwestJS, he put together the first ...

What’s wrong with this test? // __tests__/checkout.js import * as React from 'react' import {render, screen} from '@testing-library/react' import userEvent from '@testing-library/user-event' import {client} from '~/utils/api-client' jest.mock('~/utils/api-client') test('clicking "confirm" submits payment', async () => { const shoppingCart = buildShoppingCart() render(<Checkout ...

When migrating some code to TypeScript, I ran into a few little hurdles I want to share with you. In EpicReact.dev workshops, when I’m teaching how to make HTTP requests, I use the GraphQL Pokemon API. Here’s how we make ...