design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

JavaScript defaultProps in functional components with newer versions of React (18.3+)

Open VladimirParmonD opened this issue 10 months ago • 1 comments

If possible, please update the components so they no longer use soon-to-be-removed default values in functional component props. This relatively small change will help to use the lib while leveraging latest React features. defaultProps can be easily replaced by default parameters. Error is: "Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead."

VladimirParmonD avatar May 03 '24 13:05 VladimirParmonD

yes I have been seeing this issue too. I will take up this issue and try to fix it

xulingzhihou avatar Jun 15 '24 00:06 xulingzhihou