TypeScript is the main dialect developers use for writing React applications. React has a functional nature, however, TypeScript has not. It lacks some popular patterns and data structures we use and love in other functional languages like ReasonML, Elm, or PureScript. Fortunately, for the rescue, there is a rising library called fp-ts. Let me show you how it can help you.