Why I always wrap Context.Provider and useContext

from blog Vladimir Klepov as a Coder, | ↗ original
React context is a cool feature, and I use it a lot for injecting configuration and making container / child component APIs (think + ). Unfortunately, out of the box Context comes with a limiting and not very convenient API. In most cases, I choose to wrap both the provider and consumer with a custom component and a hook. Some of the issues I...