Craig Jones

Hi there 👋

My name is Craig. I am a Software Engineer based in the NW of England. This blog will be a dump of my learnings. Expect it to be littered with Tech articles, DIY and trying to learn more about my Ford Focus ST.



Understanding useMemo and useCallback in React

useMemo + useCallback
React, the popular JavaScript library for building user interfaces, provides several hooks to optimize performance and manage state in functional components. Two commonly used hooks for optimization are `useMemo` and `useCallback`. While both serve similar purposes, they have distinct use cases and can significantly enhance the efficiency of your React applications.
Read More

Capturing Vercel Logs with Better Stack - A Simple Guide

Better Stack Dashboard
Logging is an essential aspect of monitoring and debugging applications deployed on serverless platforms like Vercel. Vercel provides built-in logging capabilities but with the huge caveat (for my application anyway) that they expire after 1 hour. Here's how to get around it.
Read More

Replacing Boot Latch on Mk3 Ford Focus ST

Ford Focus Boot Latch
A couple of days ago whilst out and about shopping, I had the unfortunate scenario where my boot wouldn't close. So I decided to gamble on a new latch (electrics appeared to still work) and have a go at fitting it. Here is how it went...
Read More