Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Icon onClick={() => {}} />
- Property 'onClick' does not exist on type 'IntrinsicAttributes & Pick<Pick<Props, "className" | "name"> & Partial<Pick<Props, never>>, "className" | "name"> & { theme?: any; } & { as?: "symbol" | "object" | ... 174 more ... | undefined; }'.ts(2322)
- interface Props {
- name: string
- className?: string
- }
- const Icon = styled(({name, className, ...props}: Props) => <i className={`material-icons ${className}`} {...props}>{name}</i>)``
- [x: string]: any
- <Button onClick={() => {}} />
- const Button = styled.button``
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement