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

Answer by El Aoutar Hamza for styled-components withTheme HOC not working with types React.FC

$
0
0

You need to add a theme prop to your component props interface:

interface Theme {}

export interface ILoadingBarComponent {
  progress: number
  appearance?: string
  onFinish(finished: Promise<string>): void
  theme: Theme
}

Viewing all articles
Browse latest Browse all 2

Trending Articles



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