Discover how to create a fully type-safe pnpm monorepo using NestJS and NextJS. This comprehensive tutorial covers the integration of tRPC as the API layer, providing end-to-end type safety for your full-stack TypeScript application.
Using useMutation to make an advanced toggle in React
Recently, we were adding some new functionality to our dashboard, and we wanted an experience like this:
The basic features are:
* The toggle should make an external request when clicked to change the setting
* While the request is being made, a loading spinner should appear next to the toggle
* If
So, imagine a scenario where you’re working on a project that has its front end (or a mobile app) ready to consume data from the backend. But, the backend is not ready yet. How would you test your front end in this case?
Coding is computer science in the same way that buying something at the store is economics, or talking to your neighbor is sociology. Buying a widget at the store is governed by dynamics described …
Do you know that joke about two little fishes that swim into an older fish? He asks the young fishes how the water is, and they respond: “what’s water?”. The little fishes live an…
As with any ageing blog, _some_ of my outbound links are hitting either 404s or domains that are no longer active.
It's understandable given that my blog is ar…
Tao of React - Software Design, Architecture & Best Practices
I’ve been working with React since 2016 and still there isn’t a single best practice when it comes to application structure and design. While there are best…
The MediaSession interface of the Media Session API allows a web page to provide custom behaviors for standard media playback interactions, and to report metadata that can be sent by the user agent to the device or operating system for presentation in standardized user interface elements.
How do you even web dev without node? A quick introduction to test-driven web development using just the browser
Node is all there is, right?
It is the beginning and the end of all of web development.
We use it to install our tools, even the ones not made in node.
Web Components Will Outlive Your JavaScript Framework | jakelazaroff.com
If we're building things that we want to work in five or ten or even 20 years, we need to avoid dependencies and use the web with no layers in between.
The nine best recommendations in the new React docs
The latest React docs include recommendations on how to write React code. Here are nine points that come up most about React code style to help you avoid difficult-to-diagnose bugs.
I finally decided to learn shaders. If you're curious about what shaders are and how they work, this article is for you. We'll start with the basics and build a simple blob from scratch.