HomeArticles by: Ken Ding

Ken Ding

Introduction to Option and Either types in JS : Part 1

Category: Tech
Published on

Functions as Child Components and Higher Order Components

Category: Tech
Published on
I have recently been on a Higher Order Component (HOC) craze. HOCs are a good tool for implementing cross-cutting concerns or common functionalities, such as logging and tracking. For more information on HOCs, check out this recent post by my colleague Mehdi Mollaverdi! Then I discovered Functions as Child Components (FaCC) and a couple of my brain cells perished. FaCC’s are components that receive a function as their child. For example: View the code on Gist. So let’s take a trip through struggle town. Problem I need to build many…