Quantcast
Channel: styled-components withTheme HOC not working with types React.FC - Stack Overflow
Browsing latest articles
Browse All 2 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 latest articles
Browse All 2 View Live


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