Quantcast
Channel: styled-components withTheme HOC not working with types React.FC - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by El Aoutar Hamza for styled-components withTheme HOC not working...

You need to add a theme prop to your component props interface: interface Theme {} export interface ILoadingBarComponent { progress: number appearance?: string onFinish(finished:...

View Article


Image may be NSFW.
Clik here to view.

styled-components withTheme HOC not working with types React.FC

I'm building some components with React.FC typescript and today I found this typescript error when trying to inject styled-component props using withTheme HOC from styled-components: It seems that...

View Article

Browsing all 2 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>