Importing bootstraps JS

I have installed bootstrap from npm and imported it in my sass and that all works fine. I tried to import it in my index.tsx but none of the functions seem to be available when trying to use them. Am I doing something wrong?
5 Replies
hcker2000
hcker2000OP3mo ago
thats what i ended up doing but lets say i want to use something that hasnt been preperared for solid js is there a way to do that?
anthy
anthy3mo ago
can you share some code? Also wdym by functions?
Madaxen86
Madaxen863mo ago
That highly depends on the library. You can easily use many vanilla js with Solid. Much easier than with React. You can check out this video https://youtu.be/vD69VfQpbvE?si=FncREsFe_YuH1VYB But for component libraries in Bootstrap’s case with the jquery bindings that’s a different story. And you’ll probably end up with a big js bundle.
Martin Rapp
YouTube
How to integrate a Vanilla JS library into SolidJS.
Solid is missing an ecosystem? Well, unlike Svelte or React, Solid doesn't require wrapper libraries thanks to it's render once approach. In this video I show you how to integrate a simple. Please subscribe to @solid-dev Repo on Github: https://github.com/madaxen86/solid-tutorials/tree/master/vanilla-eco
hcker2000
hcker2000OP3mo ago
Thanks I'll check that out That's very helpful and I'm sure I'll need it at some point
Want results from more Discord servers?
Add your server