This site runs best with JavaScript enabled.

The State Reducer Pattern with React Hooks

Some History About a year ago, I developed a new pattern for enhancing your React components called the state reducer pattern . I used it in downshift to enable an awesome API for people who wanted to make changes to how downshift updates state internally. If you're unfamiliar with downshift…

Read →

Super simple start to serverless

This last little while I've been doing a fair amount of work on kentcdodds.com . One page that I've been working on is the contact page where you can request enterprise training , schedule an hour of my time for consulting , or even leave your own testimonial of my work (I'd love it if you…

Read →

How to get started with programming

Programming computers is amazing. There are so many things you can accomplish with technology these days and being able to control what computers, phones, and IoT devices do enables you to accomplish so much more. There's no shortage of ideas of the things that we can accomplish with technology…

Read →

How to Enable React Strict Mode

In January 2018, Brian Vaughn added <React.StrictMode /> . Here's how to start using it in your app today: Ok, so what does this do? Go ahead and give it a try in your app and see what happens. Don't worry, I'll wait... What happens will be different for everyone, but here's an example of what…

Read →

Goodbye Medium

I've been a blogger for over 15 years. When I was a teenager, I had a blog on blogger all about what Google was working on. I was one of the first bloggers to report on Google's acquisition of YouTube (my blog got an insane number of views that day). I also used to write (on blogger) one called…

Read →

React Hooks: Compound Components

A few weeks ago I did a DevTips with Kent livestream where I show you how to refactor the compound components pattern from a class component to a function component with React hooks: https://www.youtube.com/watch?v=415EfGPuhSo&list=PLV5CVI1eNcJgCrPH_e6d57KRUTiDZgs0u If you're unfamiliar with…

Read →

🚨 Big Announcement: I'm a full-time educator! 👨‍🏫

I've been teaching for as long as I can remember. I talk about this a lot in "Why and How I started public speaking" , but just know that I have a love of teaching, I've done it a lot, and I want to do more. This is why I'm excited to announce that I've gone full-time educator! What does this mean…

Read →