Smoothly rendering live cursors is more difficult than it sounds when real-world conditions are taken into account—here's a quick introduction to a few different methods, plus some React snippets.
Sandpack was released by CodeSandbox earlier this week, a package that takes
code demos to the next level, supporting just about every JavaScript framework. In this article
I'll be talking about the Sandpack React component, and how to get it customised & running.
With the release of Next.js 12, Vercel Edge Functions have been announced, allowing for
super speedy edge-optimised functions. They can also be used as helpful Next.js middleware functions.
In this article I'll explain what they are & how to use them, before diving into a few examples.
Blend modes allow for a number of unique visual effects, handy for both UI elements and photo manipulation. This guide explains the basics behind each blend mode, and offers a number of practical examples for use in the wild.
Last week newsletters started popping up on Twitter profiles, using their recently purchased service, Revue. But how do you
create a newsletter and add subscribers from your website? Using Vercel API routes you can start collecting subscribers in minutes. Here's a quick guide.
Displaying other users' cursors live on-screen has always been tricky to implement... but no longer! Using
Liveblocks and Next.js we can get it working in a matter of minutes. Open this page in another window, side-by-side, to see it in action!
So how exactly do React & Vue work? It can be invaluable to understand the internals of a system, which is why
in this article I'll be explaining one method to create a basic reactive framework (in just 40 lines of code).
Dark mode is increasingly appearing as an option on websites, but why not have it enable automatically? We can estimate
the sunlight levels at a user's location, and apply the correct theme to soothe their eyes.