Skip to content
Advertisement

Tag: react-bootstrap

boostrap collapse is not working in my react app

bootstrap collapse is not working in my react app . i want the collapse functionality in my app it is not working in my reactapp. i think bootstrap classes are working but bootstrap onclick is not working codesandbox code codesandboxlink bootstrap code bootstrap link solve this problem Answer you have to insall three dependencies in your app bootstrap jquery @popperjs/core

How to hide the offcanvas navbar when selecting the links inside of it using react scroll?

Any idea on how to hide/back to its original state when selecting the links inside offcanvas using react scroll? Below is my code and also here is the sandbox code https://codesandbox.io/. App.js Header.js Content.js Im using the ff: react 17.0.2 react-router-dom 6.2.2 react-scroll 1.8.7 react-bootstrap offcanvas 2.1.2 https://react-bootstrap.github.io/components/offcanvas/ I’m not sure if I missed something like useState/useEffect or an attribute

Advertisement