-
Hello every one, I just tried to use the navbar toggler following this doc : https://reactstrap.github.io/?path=/docs/components-navbar--navbar-toggler I created a component that returns exactly the same code :
but my navbar collapse button doesn't to work: Nothing happens. In the Inspector : Did I forget something ? Thank you for your help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi again, I finally made it work.
and add a state : |
Beta Was this translation helpful? Give feedback.
Hi again,
I finally made it work.
For people who have the same problème, change the NavbarToggler like this :
and add a state :
const [collsapsed, setCollapsed] = useState(true)