Julian​Garamendy​.dev

Info  |  Work  |  Blog

I Have to Write This Down

A blog about React, TypeScript, and of course bananas.
Some of these posts appear on dev.to.

Persistent REST API with json-server and Glitch

August 30, 2020

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.We’ll be using…

Why I never use React.useContext

August 13, 2020

Instead of using React.createContext directly, we can use a utility function to ensure the consuming component is rendered within the…

React State Management in 2020

August 01, 2020

Every now and then I see a tweet poll asking what we do for state management in React. In many cases the options are constrained to Redux…

My 2020 Dev Setup

May 14, 2020

This is my setup in 2020 on a MacBook Pro running macOS Catalina 10.15.4.EssentialsBrave Browser: https://brave.com/iTerm2: https://iterm…

How SWR works behind the scenes

February 27, 2020

I first learned about SWR thanks to a video tutorial by Leigh Halliday: ”React Data Fetching with Hooks using SWR”. If you’re not familiar…

Minimal State Management in React - 4. Managing Remote Data with SWR

February 26, 2020

In this series, instead of using a state-management library or proposing a one-size-fits-all solution, we start from the bare minimum and we…

Readonly<T> and Better Error Messages

February 05, 2020

The Dolomites, ItalyA few weeks ago I learned something about TypeScript errors and utility types.The following is true in TypeScript v3.7.…

Minimal State Management in React - 3. Sharing Data with React Context

September 16, 2019

In this series, instead of using a state-management library or proposing a one-size-fits-all solution, we start from the bare minimum and we…

Minimal State Management in React - 2. Changing Remote Data with Hooks

September 15, 2019

In this series, instead of using a state-management library or proposing a one-size-fits-all solution, we start from the bare minimum and we…

Minimal State Management in React - 1. Loading Data with Hooks

September 14, 2019

In this series, instead of using a state-management library or proposing a one-size-fits-all solution, we start from the bare minimum and we…

A use case for TypeScript Generics

August 15, 2019

The following may be a bit obvious for some. But something just clicked in my head and I thought I’d write it down.When generics are a good…

React + TypeScript Monorepo Demo

August 01, 2019

At work we have a project spanning across 4 repositories: 3 React apps + 1 TS library (used by the 3 react apps).We’re considering moving…

Catching bugs with stricter TypeScript

July 19, 2019

We recently enabled "noImplicitAny" in a relatively old TypeScript project. It resulted in 269 new errors. Most of those were missing type…

Configuring Prettier and TypeScript Compiler as a Pre-commit Hook

June 21, 2019

We can easily improve our developer experience by:Preventing broken code being committed/pushed.Avoiding pointless arguments about…

Publishing a React Hooks Library using Typescript and TSDX

May 15, 2019

I started my personal hooks library and decided to publish it as an npm package. Doing this in TypeScript was not straightforward, until…

Cancelling a Promise with React.useEffect

April 07, 2019

I’ve seen it done in complicated ways so I have to write this down.Quick ExampleIn the code above, the fetchBananas function returns a…

Adding custom OpenGraph images to Gatsby Starter Blog

March 01, 2019

I have a blog based on the Gatsby Starter Blog without any modifications.The ProblemI want my posts to have a nice image when sharing them…

Testing Opinions

February 22, 2019

⚠️ Warning! This article is highly opinionated.It happens often at work that my colleagues and I discuss the best way or the proper way to…

Null Checking in TypeScript

February 05, 2019

Following up on the previous gist about avoiding non-null-assertion operator I think it would be good to see some examples of null checking…

Avoiding the Non-null-assertion Operator in React + Mobx + Typescript Projects

February 01, 2019

Today I learned something at work. I am new to MobX and I had to make changes to a React + Typescript + MobX project. I noticed the props of…

Introducing Banana Tabs

December 10, 2018

Has this ever happened to you?You keep lots of tabs in a single window to the point where you can’t tell what’s what anymore.Or worse: you…

Hello!

December 01, 2018

This is my first post on my new Gatsby + Netlify blog.I plan to use this blog to share as I learn React, TypesScript and related tech.If…


Julian Garamendy

Written by Julian Garamendy Julian Garamendy's DEV Profile