Hello

I'm Alejandro

A Web Engineer from Málaga, Spain based in London, UK

Blog

Avoiding complexity with Compound Components

Over the years, the way we consume and create our React Components have changed considerably. I'm pretty sure, at some point this thought got on your mind when creating a component. I'm going to create this generic component that we will…
Read →

Use media queries with React hooks

Using media queries with React is pretty easy nowadays. There are a lot of solutions out there, but the most popular one is react-media by the ReactTraining people. But today everyone wants to use hooks, so I'm going to show you how to…
Read →

How to break the rules, with conditional hooks

If you have been working with hooks for a while now, you probably know there are some rules around it. One of them is, hooks cannot be conditional or called inside loops, neither inside nested functions. They need to be on the top level…
Read →

Route to Next.js

Tell me this never happen. You have a new idea of project, and then you start coding straight away. You need all sorts of things, Server Side Rendering because you want Google to pick up your content. Also, you want it to be fast, so you…
Read →

useEffect and useLayoutEffect

From React's 16.8 release, there has been quite a change in the way we use to write React components. In this version, the React team introduced Hooks, allowing you to share your component logic and not write a single class anymore. People…
Read →

Code splitting

We live in a world where there are plenty of devices. They have different sizes, memory, cpu or even screen resolutions. Some are faster than others. But they all have something in common, they want to access the web and they want to do it…
Read →

Understanding Optional Chaining

Great News! Optional Chaining is a thing! But... are you ready for it? Do you know what does it mean? Do you know how to use it? If that's a no, hopefully, at the end of this post, you will perfectly know how to answer all these questions…
Read →

How to create your own Typescript library

Creating my own Typescript library is being my life for the last months, so I wanted share my experience and the steps you should follow to create your very own. From my point of view, there are a lot of missing points on the Internet when…
Read →

React performance with CSS

There are a lot of different ways to do CSS with React, and the library itself is not opinionated on how you do so, instead, it’s you, the developer, who decides what to use. Reality is, that if you look for “Stying a React App” in google…
Read →

Intersection Observer in action

Intersection Observer? Whaaat!? That sounds scary! In this post I want to explain my journey through and use case for using Intersection Observer. I will also give you a brief overview of how you can get started. As the specification says…
Read →