Closed vikingmute closed 4 years ago
Hey, everyone
I found the loader can't generate the right prop types when using React build in interface (eg. React.ButtonHTMLAttributes), the code sample as below
interface TestButtonProps extends React.ButtonHTMLAttributes<HTMLElement> { /** a really great prop */ bestProp: string } export const Button: FC<TestButtonProps> = (props) => { ... }
and the result screenshot is here:
Any help will be greatly appreciated!
Hey, everyone
I found the loader can't generate the right prop types when using React build in interface (eg. React.ButtonHTMLAttributes), the code sample as below
and the result screenshot is here:
Any help will be greatly appreciated!