Closed vojtechsimetka closed 2 weeks ago
All of our components extend at minimim HTMLAttributes<HTMLElement> which already includes the common props like style, class etc. However, in our codebase we often redefine these attributes in the Props type definition.
HTMLAttributes<HTMLElement>
style
class
Props
interface Props extends HTMLAttributes<HTMLElement> { ... class?: string }
We should remove the class definition and check if there are any other type attributes that don't need to be re-defined.
All of our components extend at minimim
HTMLAttributes<HTMLElement>
which already includes the common props likestyle
,class
etc. However, in our codebase we often redefine these attributes in theProps
type definition.We should remove the class definition and check if there are any other type attributes that don't need to be re-defined.