Making the Best of Config

Over the last half year, I have been looking into several of project repositories on GitHub, and I came across quite a few different ways of configuring (and using) various tools and services. In this post, I would like to share some simple, yet effective suggestions that, in my opinion, make for a much easier […]

Conditional Component Composition

In this post, I would like to share two related things that I have developed in the course of a recent client project: ConditionalComponent and composeIf. Conditional Components Sometimes there is the need to render one component or another, based on some condition or context. This is usually done by either an early return or […]

ABC – The Look of Love (in Code)

No, sorry, this is not about the song. But well, while you’re all here, why not start it in the background, and continue reading…? 😅 CONFLICT (some-branch): Merge conflict in some/ Over and over again, I encountered merge conflicts due to several people adding stuff to some kind of list by simply appending whatever they […]

How to Test Container Components in React

Assuming you would want to unit-test container components in React (i.e., connected components in a Redux-based project), or any component that is wrapped in a higher-order component (HOC) etc. really, here’s a simple thing you should always do: 👉 Also export the “naked” component! I am talking about something like this: // … export { […]