Technical Blog

Written by Chak Shun Yu, a software engineer with a current focus on frontend and React, located in the Netherlands. This blog is where I write about everything I encounter and learn during my journey to become a better developer. You can also follow me on Twitter and Dev.

How To Write Readable React Content States

July 20, 2021

Content streams are an important part of any React project, but also introduces a lot of complexity. Long term, making sure that the code is readable has a serious impact on the maintainability. This article will cover and analyze the readability of two fundamental approaches to handling content states in your React components.

How To Mock Only One Function From A Module In Jest

April 18, 2021

In this article, I go over the different available mocking approaches, the differences between them, and the different use cases for mocking one particular function from an imported module in Jest.

Think About Your Reviewers

May 22, 2020

A story, self reflection, and learning from an early stage in my engineering job about how I totally forgot about the most important audience of all: reviewers.

Your Code Doesn't Have to Be Perfect

January 20, 2020

A story from an early stage in my engineering job about how I tried too much to come up with the perfect solution, rather than keeping it simple and not unnecessarily wasting time, and a reflection of what I could've done different.

Why I'll definitely use mapDispatchToProps in Redux

January 05, 2020

Why using the second argument of Redux's `connect` function will lead to more maintainable and higher quality React code, as well as significantly improving how you're able to test your components.

My first week of open source: how I got involved, and what I’ve learned

June 13, 2018

When I started to write this post, I had finished my first serious week of contributing to open source. I mainly contributed to the project Storybook. This post will describe the contributions and interactions that took place this week. It will also focus on the path that led up to this week.