Error on icon prop in Button: "Warning: Each child in a list should have a unique "key" prop." #1732
Closed
3 tasks done
Labels
bug
Something isn't working
Describe the issue
Summary
When setting the icon prop with an empty function, SVG or Icon component in a Button results in an error in the browser's console when running in a development environment: "Warning: Each child in a list should have a unique "key" prop."
Steps to reproduce
Button
with an icon in development environment:<Button icon={() => {}}>Button</Button>
Issue has been isolated and reproduced in CodeSandbox.
Environment
Checklist
Additional notes
The text was updated successfully, but these errors were encountered: