react-theme-provider icon indicating copy to clipboard operation
react-theme-provider copied to clipboard

Something is definitely wrong with <ThemeProvider>'s typings 👀

Open dedunovich opened this issue 2 years ago • 1 comments

Description

image

BTW i don't really understand what for this <ThemeProvider> component is needed Everything seems to work fine even without it

withTheme() HOC kinda provides theming 🤷🏼‍♂️

Reproducible Demo

I've reproduced this issue on CodeSandbox Come check that out 👇

sandbox 🎁

dedunovich avatar May 19 '22 11:05 dedunovich

Screen Shot 2022-07-20 at 3 01 40 PM

Do this in your index.js seem to be working and it does not complain anymore. Follow the library usage guide.

phihuynh94 avatar Jul 20 '22 21:07 phihuynh94