test-component-with-component-class-type
v1.0.2
Published
Downloads
6
Readme
withStyles Bugfix:
eigentliche Implementierung:
export interface NewComponentProps extends ComponentProps {...}
const InnerNewComponent: React.SFC<
NewComponentProps & WithStyles<typeof styles>
> = props => (
<Component>
...
</Component
)
export const NewComponent = withStyles(styles)(InnerNewComponent);
-> sorgt für Fehlermeldung
workaround:
export interface NewComponentProps extends ComponentProps {...}
interface InnerNewComponentProps extends WithStyles<typeof styles> {}
const InnerNewComponent: React.SFC<
NewComponentProps & InnerNewComponentProps
> = props => (
<Component>
...
</Component
)
export const NewComponent = withStyles(styles)(InnerNewComponent);