#Importing bootstraps JS

7 messages · Page 1 of 1 (latest)

fickle harness
#

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?

graceful bobcat
fickle harness
#

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?

warm warren
#

can you share some code? Also wdym by functions?

graceful bobcat
# fickle harness thats what i ended up doing but lets say i want to use something that hasnt been...

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.

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

▶ Play video
fickle harness
#

Thanks I'll check that out