Open movinsilva opened 4 months ago
Describe the issue:
The components in the @oxygen-ui/react library are using defaultProps, which is deprecated in function components in React. This results in console warnings, such as the one shown for the Typography component.
defaultProps
Refer react docs.
How to reproduce:
@oxygen-ui/react
pnpm i @oxygen-ui/react
Expected behavior:
No deprecation warnings should be shown in the console when using any component from the @oxygen-ui/react library.
Environment information
Describe the issue:
The components in the @oxygen-ui/react library are using
defaultProps
, which is deprecated in function components in React. This results in console warnings, such as the one shown for the Typography component.Refer react docs.
How to reproduce:
@oxygen-ui/react
library by runningpnpm i @oxygen-ui/react
.@oxygen-ui/react
library which uses default props (e.g., Typography, Input, Drawer).Expected behavior:
No deprecation warnings should be shown in the console when using any component from the @oxygen-ui/react library.
Environment information