↧
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 Articlestyled-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