Interfaces for user feedback are inherently asynchronous. Connecting the response to the original request through state can be cumbersome. In this article I'll show an alternative in React that utilizes common Promise patterns.
I recently migrated my personal site and blog to Next.js. In this post I talk about why and how the process went.
Just a simple pattern I use for React Context that I've found useful.
React provides a great way to gracefully deal with errors using error boundaries, but they're limited to errors in render. Let's explore a way to remove that restriction and use error boundaries for all of our errors.
How to improve, rather than degrade, performance using React Context.
React Context is often used to pass values down the component tree, but some powerful APIs can be made by passing values up instead.