How to Fetch GraphQL Data in Next.js with Apollo Client

Next.js has rapidly become one of the most popular frameworks for building React applications. A key feature is its useful built-in APIs for fetching data for each page. But how can we leverage those APIs with GraphQL to superpower our apps? In this in-depth guide, we‘ll walk through how to integrate Apollo Client with Next.js…

How to Deploy a Next.js App with Custom Domain on AWS Using SST

The popularity of React and the Jamstack architecture has led to an explosion of frameworks and tools in the web development ecosystem. One that has quickly risen to prominence is Next.js, a React framework that enables hybrid static & server rendering, TypeScript support, smart bundling, route pre-fetching, and more. Next.js has become a go-to choice…

How to Create a Next.js Starter to Easily Bootstrap a New React App

Introduction Next.js has quickly become one of the most popular frameworks for building React applications. With its powerful features and easy-to-use development environment, Next.js simplifies the process of creating server-rendered React apps. But what if you want to take it a step further and create a preconfigured starter template that you can use to bootstrap…

How to Create an Out-of-this-World Meteor Effect with React and TailwindCSS

As a frontend developer, I‘m always on the lookout for ways to add delightful, eye-catching visuals to my web projects. Recently, while scrolling through Twitter, a UI component caught my eye that featured dazzling beams of light streaking across the background, almost like a meteor shower softly illuminating the night sky behind an image card….

How to Bypass ES Modules Errors in Next.js with Dynamic Imports

If you‘ve worked on a modern JavaScript project, especially one using a framework like Next.js, you‘ve likely encountered errors related to ES modules. These cryptic error messages about "Must use import to load ES Module" can be frustrating to debug, often bringing development to a grinding halt. However, there‘s a convenient solution that every full-stack…

How to Build a Code Editor with React that Compiles and Executes in 40+ Languages

As a full-stack developer, I‘ve often needed a quick and easy way to test code snippets in various programming languages without switching between different tools. That‘s why I decided to build an online code editor using React that allows compiling and executing code in over 40 programming languages. This post will guide you through the…

Building a Real-Time Santa Tracker with Next.js, React Leaflet and Mapbox

🎅🎄 The holidays are a time for joy, giving and spending time with loved ones. For many, the magic of Christmas morning hinges on one crucial question: where in the world is Santa Claus? While NORAD has been tracking Santa on his yuletide journey since 1955, a sprinkle of modern web tech is all it…

How to Build a Stunning Portfolio Site with Sanity CMS and Next.js

As a web developer, your portfolio is one of your most important assets. It‘s the first place potential clients or employers look to evaluate your skills and experience. An effective portfolio should be visually appealing, easy to navigate, and showcase your best work. In this guide, I‘ll show you how to build a modern portfolio…

How to Authenticate Users in Next.js With NextAuth – App Router VS Pages Router

Authentication is a critical feature in most web applications today. It allows you to protect sensitive information, personalize user experiences, and secure access to your app‘s functionality. However, implementing authentication from scratch can be complex and time-consuming. Fortunately, modern web frameworks like Next.js make it easier to add authentication to your apps. Next.js is a…

How to Add a YouTube Playlist to a Next.js React App with the YouTube API

If you‘re a content creator on YouTube, you‘ve probably amassed an impressive collection of videos over time. But did you know you can showcase your video content outside of YouTube as well? By leveraging the power of the YouTube API, developers can easily integrate YouTube playlists and videos into their own websites and apps. In…