Note: this post was originally published on my Medium profile When refactoring a Higher-Order Component (HOC) in a TypeScript project at work, there was some confusion regarding how to write them properly. After a discussion with my friend and colleague Marek, I decided to write this guide for future reference. I hope it helps you too. What are HOCs? As per the official docs, HOC is a higher-order
