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.
Describe the bug
For example,
srcandtypeare both rendered on the rootdivof Avatar: https://5ccbc373887ca40020446347-oghpnhotjv.chromatic.com/?path=/story/avatar--largeExpected behavior
Invalid and unnecessary DOM attributes should not be rendered.
Additional context
Use
shouldForwardPropto fix.