Aug 22, 2017 · 1 min read
<ThemeProvider> isn’t a HOC. It’s an ordinary component that registers context. I mean you use context directly in <Button>. In such case better to use HOC to take an property from context and pass it to component. For example, styled-components uses withTheme HOC for this.
