JulianGaramendy.dev
I have to write this down
A blog about React, TypeScript, and of course bananas. Some of these posts appear on dev.to.
- 4 February, 2021
This post should appear on my blog automatically
My personal site uses a Next.js **Incremental Static Regeneration**. Posts published on dev.to automatically appear on my blog.
- 23 January, 2021
Using Dev.to as CMS for my Next.js 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.
- 31 August, 2020
Persistent REST API with json-server and Glitch
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.
- 17 August, 2020
Why I never use React.useContext
Instead of using React.createContext directly, we can use a utility function to ensure the component...
- 1 August, 2020
React State Management in 2020
Here's what I do for medium-sized CRUD-like single-page React applications.
- 26 April, 2020
What Westworld and React Hooks have in common
⚠️ Spoiler alert! If you haven't watched Westworld perhaps you may want to skip this post. In the fi...
- 27 February, 2020
Managing Remote Data with SWR
In this series, instead of using a state-management library or proposing a one-size-fits-all solution...
- 24 February, 2020
How SWR works behind the scenes
I first learned about SWR thanks to a video tutorial by Leigh Halliday: "React Data Fetching with Hoo...
- 5 February, 2020
Readonly<T> and Better Error Messages
A few weeks ago I learned something about TypeScript errors and utility types. The following is true...
- 17 September, 2019
Sharing Remote Data with React Context
In this series, instead of using a state-management library or proposing a one-size-fits-all solution...
- 17 September, 2019
Changing Remote Data with Hooks
In this series, instead of using a state-management library or proposing a one-size-fits-all solution...
- 17 September, 2019
Loading and Displaying Data with Hooks
In this series, instead of using a state-management library or proposing a one-size-fits-all solution...
- 15 August, 2019
A use case for TypeScript Generics
The following may be a bit obvious for some. But something just clicked in my head and I thought I'd...
- 19 July, 2019
Catching bugs with stricter TypeScript
We recently enabled "noImplicitAny" in a relatively old TypeScript project. It resulted in 269 new er...
- 22 June, 2019
Configuring Prettier and TypeScript Compiler as a Pre-commit Hook
We can easily improve our developer experience by: Preventing broken code being committed/pushed. A...
- 15 May, 2019
Publishing a React Hooks Library using Typescript and TSDX
I started my personal hooks library and decided to publish it as an npm package. Doing this in TypeSc...
- 8 April, 2019
Cancelling a Promise with React.useEffect
How to properly subscribe and, more importantly, unsubscribe from a Promise with React.useEffect
- 4 March, 2019
Testing Opinions
Testing the output of a function is not the same as testing its implementation details.
- 3 March, 2019
Adding custom OpenGraph images to Gatsby Starter Blog
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.