Iconscout / react-unicons

1000+ vector icons as easy to use React Components
https://iconscout.com/unicons
Other
333 stars 39 forks source link

I am getting "Support for defaultProps" warning for every icon that i am using. #86

Open saleh-b opened 9 months ago

saleh-b commented 9 months ago

Warning: UilTimesSquare: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

How do I deal with this?

DannyCarvajal commented 7 months ago

+1

larrysingh commented 6 months ago

+1

fadichmn commented 4 months ago

+1

doniek commented 2 months ago

This issue is open for quite some time and as far as I can see it seems like a simple fix in the build/generate.js to default the color and size in the method header. I'm not familiar with this library and the way it is build, so would be great if one of the maintainers can actually change the behavior to remove the deprecated use of defaultprops.

fnogatz commented 1 month ago

I created PR https://github.com/Iconscout/react-unicons/pull/95 which addresses this warning.