skip to Main Content

Errors while using styled and typed components in ReactJS

I have a styled component that looks like this: export const TestClassButton = styled(Button)({ ... }) And I use it like this: <Tooltip arrow title={"status"}> <TestClassButton id={"button-status-dialog"} onClick={() => setShowDialog(!showDialog)} > <ListAltIcon /> </TestClassButton> </Tooltip> Result: If I try to…

VIEW QUESTION
Back To Top
Search