Helping you become a rockstar web developer
Recent
Most viewed
Headless UI Transitions
Transitions in Tailwind Lab's Headless UI library made simple.
How to Use Headless UI's Combobox with Async Data
Learn how to create an autocomplete component that works with your backend.
How to Fix Bottom Padding for iOS Mobile Browsers
How to dynamically add extra bottom padding on mobile devices using CSS.
Most loved
How to Create Themes with Tailwind CSS and React
Use CSS variables to leverage client-side theming with Tailwind CSS and React.js.
Headless UI Transitions
Transitions in Tailwind Lab's Headless UI library made simple.
How to Add Google Adsense Ads to a Next.js App
Get paid for your content. Learn how I add Google Adsense ads to a Next.js app.
Frontend
Don't Bake Spacing into React Components with Tailwind CSS
A simple strategy to make React components more reusable when working with Tailwind CSS.
How to Ensure Code Only Runs in the Browser in Next.js
How to ensure your code is only run on the client when using a full-stack JavaScript framework such as Next.js or Remix.
Refactoring State Machines from useEffect to useReducer
How I used useReducer can simplify state machine logic.
Backend
Build an AI in 10 Lines of Code
Learn how to integrate OpenAI and Python to build an intelligent chatbot.
Output Relationships as Nested JSON with PostgreSQL
Use Knex.js to fetch table relationships as structured JSON with a single PostgreSQL query.
How to Host a Gatsby Site on AWS with Terraform
Deploy S3, CloudFront, Route53 (and more) infrastructure with Terraform to host your Gatsby.js website.
Next.js
Blur Placeholder Images with Next.js and mdx-bundler
Get that "blur-up" effect we used to love in Gatsby.
Google Analytics 4 with Next.js
How to set up gtag.js with Next.js and TypeScript.
How to Use Headless UI's Combobox with Async Data
Learn how to create an autocomplete component that works with your backend.
Software Engineering
React.js
When to Create Custom React Hooks
Find out common scenarios when you should use custom React hooks.
How to Add Google Adsense Ads to a Next.js App
Get paid for your content. Learn how I add Google Adsense ads to a Next.js app.
Don't Bake Spacing into React Components with Tailwind CSS
A simple strategy to make React components more reusable when working with Tailwind CSS.
JavaScript
Building a Mental Model Around JavaScript Promises
Promises can be tricky to understand. I'll demystify promises and show you how you can leverage them to make your apps faster.
How to Make Headless React Notifications in TypeScript
Managing notifications' state does not have to be hard. Learn how to create notifications with ease.
Introducing JavaScript's Pipe Operator
Functions on functions on functions. Improve your code with JavaScript's pipe operator.
Tailwind CSS
How to Override Styles with Tailwind CSS Typography
Do you need to override styles using the `prose` class? Try this.
Don't Bake Spacing into React Components with Tailwind CSS
A simple strategy to make React components more reusable when working with Tailwind CSS.
Simple Trick to Clean Up Tailwind CSS in React
Long strings of Tailwind CSS utility classes can be hard to read. This simple function fixes that.
TypeScript
Why You Should Stop Using Booleans
Learn when you shouldn't use booleans as a property type.
How to Use Headless UI's Combobox with Async Data
Learn how to create an autocomplete component that works with your backend.
How to Ensure Code Only Runs in the Browser in Next.js
How to ensure your code is only run on the client when using a full-stack JavaScript framework such as Next.js or Remix.
CSS
Learn the Box Model with Tailwind CSS
Learn the box model—a concept fundamental to CSS—using Tailwind CSS.
How to Use Headless UI's Combobox with Async Data
Learn how to create an autocomplete component that works with your backend.
Learn Flexbox With Tailwind CSS and React
Master CSS Flexbox with Tailwind CSS.
Testing
How to Find Dead Links with Cypress Testing Library
You don't want your users to hit a 404 when they click one of your links. Let's fix that.
How to Find Broken Images with Cypress Testing Library
You don't want your users to have to read the alt tag because your image didn't load. Let's fix it.
TDD and Unit Testing with Jest
Learn the basics of writing unit tests and practicing test-driven development with examples in TypeScript.
SEO
Improve Accessibility with Semantic HTML
Learn how to make your site more accessible with semantic HTML.
Improve SEO with Social Sharing Cards
Find out how to get an image and metadata to show up when sharing your link on Facebook, Twitter, and other social media sites.
Dynamic Sitemap with Next.js and Supabase
How I use Next.js getServerSideProps with Supabase to generate a sitemap on demand.
Headless UI
How to Make Headless React Notifications in TypeScript
Managing notifications' state does not have to be hard. Learn how to create notifications with ease.
Headless UI Transitions
Transitions in Tailwind Lab's Headless UI library made simple.
How to Create Themes with Tailwind CSS and React
Use CSS variables to leverage client-side theming with Tailwind CSS and React.js.
Gatsby.js
How to Host a Gatsby Site on AWS with Terraform
Deploy S3, CloudFront, Route53 (and more) infrastructure with Terraform to host your Gatsby.js website.
Google Analytics Events with Gatsby and TypeScript
How I use TypeScript to track Google Analytics events in Gatsby.js.
How to Deploy a Gatsby Site to AWS with GitHub Actions
Use Terraform and GitHub Actions to build a CI/CD pipeline for your Gatsby project.