Typing React Context to avoid an undefined default value
React Context API is really useful when it comes to sharing data between disconnected components without prop drilling, here is a way of correctly type the Context API to avoid a default value or a non-null TypeScript assertion.