Pass props to rebass Button component with typescript is not working
Author: yokiijayCreated Jul 6, 2020Updated Feb 28, 2022
Here is the higher component I built based on rebass Button
Can't pass props to Button if I give ButtonProps to Btn, is there any way to do that?
import { FC } from 'react'
import { Button, ButtonProps } from 'rebass'
const Btn: FC<ButtonProps> = ({...props}) => {
return(
<Button {...props}></Button>
)
}
export default Btn

Source: rebassjs/rebass