Written content to help you along your web development journey, without forgetting to have some fun along the way.
Add a component that dynamically swaps between next/link and a native anchor tag, and decides how to write the target attribute, all based on the href property.
Although more applicable to traditionally-built sites, inlining critical CSS can be a quick and easy performance boost for your site, especially as it grows.
Inlining critical CSS is a breeze for classic SSG sites built and deployed using Netlify. Here’s how it works.
Running React in strict mode with Next.js can lead to useEffect callbacks with zero dependencies to run twice in development. Here’s a way around that.
It’s surprisingly easy to create infinite loops in React.
A (limited) CSS-only approach for styling placeholders, along with a way to work around the limitations with a custom JS-based solution.
Hide the “more videos” section on an embedded YouTube video with this quick tip.
Learn how to run a single test within a file, how to target a series of tests within a file, or how to only target a single file when using Jest.
Multiple approaches on running a subset of Jest tests within a project.
A quick tip for making ordered lists in markdown easier to write.