Frontend

173 articles · all categories

Lessons from 20 years of building UIs people actually use — React, dataviz, and the browser platform.

Frontend articles

February 2020

Mocking and testing fetch requests with Jest

Connecting Gumroad to Auth0 for paywalled JAMStack apps

January 2020

How GraphQL blows REST out of the water

Let's have a look at hyow GraphQL makes queries so much easier and more pleasant than REST

December 2019

A promises gotcha that will catch you out

November 2019

Towards a Gatsby+Suspense proof-of-concept

Experimenting with the new React Concurrent mode

October 2019

Is hot dog taco?

What if I told you modern tools let you build and launch a small webapp in 30 minutes? Complete with SSL, a .com domain, a database, a documented API, CDN hosting, fast static initial loads, and a hydrated SPA? That's the challenge I posed at Silicon Valley Code Camp this weekend. The audience didn't believe me, so it was time to perform some magic. 🧙

August 2019

The Big Mac index and Jest fetch testing

The Big Mac index is a purchasing power parity index published by The Economist. Jest fetch testing is a tech task so frustrating that it almost made me quit the industry. I'm writing this so you don't have to read 8234721 different blog posts, stack overflow answers, and GitHub threads with conflicting info on how to get Jest and fetch to play together.

useReducer + useContext for easy global state without libraries

useAuth – the simplest way to add authentication to your React app

July 2019

The unreasonable difficulty of adding a feature to a Textarea

How to drive React state with D3 transitions for complex animation

June 2019

A Drilldown Piechart with React and D3

TypeScript's biggest flaw and how you can use ducks to fix it

Is JavaScript really getting too complex?

Getting the CSS out of rendered React components

May 2019

Just for fun 👉 React vs. jQuery vs. Svelte, same 🐱 app

I was bored Monday night and decided to see if I still know how to build with jQuery. Nothing better to do, no pressing ideas, a bit of fun. Also a favor for a friend who's preparing to talk about React to a bunch of people who've never seen it before 😛

Svelte takes the best of React and the best of Vue to make something awesome

April 2019

Finally, a practical use case for JavaScript generators!

JavaScript generators are amazing. They let you write infinite loops that terminate. Yield values from functions before they finish … and I bet you've never used a JavaScript generator even once did you? I FOUND A USE! A real world practical use-case where generators make your code better. 😱

Custom markdown extensions with Remark and HAST handlers

Trying the new ResizeObserver and IntersectionObserver APIs

March 2019

BrowserStack – a less painful way to test weird browsers

Fixing laggy UI with React.memo

useDimensions – a React Hook to measure DOM nodes

Why dataviz does better for your career than TODOapps

Behind the curve ... of my bar donut chart 🤨

February 2019

JavaScript’s most popular dataviz library

An experiment to merge React and Vue

Custom react hooks ❤️

Async, await, catch – error handling that won't drive you crazy