Note: The design pattern presented in this blog shows how to implement a predictable state container using the React Context API. Typescript assists in building and consuming state correctly. TLDR; Codesandbox For my current project I had to rethink of a way to implement state management inside a single-page React…