How to Implement Bootstrap in a SolidJs Project

How to Implement Bootstrap in a SolidJs Project

Adding Bootstrap to your working SolidJs Project.

ยท

1 min read

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,

  1. Make sure you are in the directory of your project, opened in your code editor.

  2. Run the command:

    npm i solid-bootstrap
    
  3. After command runs successful, open package.json to see that it is installed correctly

  4. Open your index.html file

  5. Add 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

Acknowledgement

Dev P Academy

Thanks for engaging ๐ŸŽ‰

ย