Closed MaralS closed 4 years ago
Hey @MaralS,
You should never need to pass isOpen={false}
explicitly.
It looks like you need to control the state externally.
This example in the FAQ should help: https://github.com/negomi/react-burger-menu/wiki/FAQ#i-want-to-control-the-open-state-programmatically-but-i-dont-understand-how-to-use-the-isopen-prop
Hey @MaralS,
You should never need to pass
isOpen={false}
explicitly.It looks like you need to control the state externally.
This example in the FAQ should help: https://github.com/negomi/react-burger-menu/wiki/FAQ#i-want-to-control-the-open-state-programmatically-but-i-dont-understand-how-to-use-the-isopen-prop
Oh ok, thanks for the answer !
Hello, I have a website using react-burger-menu but it is still open when i click on a menu item. I don't know what I'm doing wrong.