How to Implement Bootstrap in a SolidJs Project
Adding Bootstrap to your working SolidJs Project.
SolidJs just like React as their dedicated Bootstrap components for them. This is called solid-bootstrap
just like react-bootstrap
.
To add this bootstrap to your working SolidJs project,
Make sure you are in the directory of your project, opened in your code editor.
Run the command:
npm i solid-bootstrap
After command runs successful, open
package.json
to see that it is installed correctlyOpen your
index.html
fileAdd this, before your title, in your head section:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
References
Solid Bootstrap: github.com/solid-libs/solid-bootstrap
Acknowledgement
Thanks for engaging ๐
ย