33yo, studying to be a front-end developer(eyeballing fullstack for the future).
goal is to develop and sell web and mobile solution packages to companies somewhere down the line.
Nice and quick setup!
I now have my page up and running but i cant get the collapse function to work, is there something more i need to do to get that working?
Yep, you'll need to include Bootstrap's JavaScript dependencies. There are a couple of different ways to do this—I ended up including them in my <head/> tag using the next/head component:
This was my "quick fix" way of getting things like collapse and dropdowns up and running, however I'd recommend looking into properly importing Bootstrap into your project as a module, if you're building something for production.
Hi there, have you found an easier and reliable way to import the JS into the app? I searched through the web and bootstrap docs for configuring the webpck was complicated for a guy that never worked with webpack.
Any help would be appreciated
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice and quick setup!
I now have my page up and running but i cant get the collapse function to work, is there something more i need to do to get that working?
Hello Ted. You can use something like this to collapse the NavBar.
Credit to dev.to/johnotu/how-to-toggle-boots...
Awesome—nice work! 🥳
Yep, you'll need to include Bootstrap's JavaScript dependencies. There are a couple of different ways to do this—I ended up including them in my
<head/>
tag using the next/head component:This was my "quick fix" way of getting things like collapse and dropdowns up and running, however I'd recommend looking into properly importing Bootstrap into your project as a module, if you're building something for production.
Hi there, have you found an easier and reliable way to import the JS into the app? I searched through the web and bootstrap docs for configuring the webpck was complicated for a guy that never worked with webpack.
Any help would be appreciated