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

How to use state to control the state of the menu in the parent component and at the same time support click on mask to close the menu #454

Closed andrew2558 closed 3 years ago

andrew2558 commented 3 years ago

image

andrew2558 commented 3 years ago

I have found the answer, just use onStateChange