My personal site uses a Next.js **Incremental Static Regeneration**. Posts published on dev.to automatically appear on my blog.
My Next.js site fetches my published articles using the dev.to API. It generates all pages at build time, and then individually again on every request. Also new articles can appear in my blog without having to build and deploy. Here's how it works.
This is the easiest way I know to get a public persistent REST API up and running in under 1 minute, without writing any code.
Instead of using React.createContext directly, we can use a utility function to ensure the component...
Here's what I do for medium-sized CRUD-like single-page React applications.
⚠️ Spoiler alert! If you haven't watched Westworld perhaps you may want to skip this post. In the fi...
In this series, instead of using a state-management library or proposing a one-size-fits-all solution...
I first learned about SWR thanks to a video tutorial by Leigh Halliday: "React Data Fetching with Hoo...
A few weeks ago I learned something about TypeScript errors and utility types. The following is true...
In this series, instead of using a state-management library or proposing a one-size-fits-all solution...
In this series, instead of using a state-management library or proposing a one-size-fits-all solution...
In this series, instead of using a state-management library or proposing a one-size-fits-all solution...
The following may be a bit obvious for some. But something just clicked in my head and I thought I'd...
We recently enabled "noImplicitAny" in a relatively old TypeScript project. It resulted in 269 new er...
We can easily improve our developer experience by: Preventing broken code being committed/pushed. A...
I started my personal hooks library and decided to publish it as an npm package. Doing this in TypeSc...
How to properly subscribe and, more importantly, unsubscribe from a Promise with React.useEffect
Testing the output of a function is not the same as testing its implementation details.
I have a blog based on the Gatsby Starter Blog, but I want my posts to have a nice image when sharing them on social media.