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.05k stars 586 forks source link

Custom functions to handle your state when users triggers open or close actions #388

Closed badtant closed 4 years ago

badtant commented 4 years ago

I made this pull request to solve this issue: https://github.com/negomi/react-burger-menu/issues/387

If you keep the state of the menu on your own it's handy to be able to pass in functions that is called when to users triggers actions to open or close the menu from within the menus own gui.

negomi commented 4 years ago

Hi @badtant, this looks fine, thanks for contributing! 😄