negomi / react-burger-menu

:hamburger: An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations
http://negomi.github.io/react-burger-menu/
MIT License
5.04k stars 582 forks source link

defaultProps deprecation warning #488

Closed stuartmemo closed 8 months ago

stuartmemo commented 1 year ago

Using the <Menu /> component results in the following warning:

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

Example code:

import Menu from 'react-burger-menu/lib/menus/slide';

const MyMenu = () => {
    return <Menu right>...</Menu>
};
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

jay-guro commented 1 year ago

Hi, is this possible to implement? Seems like there isn't really anything we can do to mitigate on our end. Thanks in advanced!

sahand-sn commented 1 year ago

same error

Nikolay-Tymoshchuk commented 1 year ago

Will you make some update for fix this issue?

stale[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

tuxd commented 3 months ago

How is this completed when nothing has changed?