[Bug] Many components forward props to the DOM when they should not
kylegach opened this issue · comments
Kyle Gach commented
Describe the bug
For example, src
and type
are both rendered on the root div
of Avatar: https://5ccbc373887ca40020446347-oghpnhotjv.chromatic.com/?path=/story/avatar--large
Expected behavior
Invalid and unnecessary DOM attributes should not be rendered.
Additional context
Use shouldForwardProp
to fix.