Import CSS from React npm pacakge

Im looking for a way to do the standard css import from a npm package for a react component bindings. I know this is tied to the bundler, but not sure how or where this should be included. We are using CRA.

import 'pure-react-carousel/dist/react-carousel.es.css';

Thanks,

Dan

Check here https://rescript-lang.org/docs/manual/latest/interop-with-js-build-systems#use-loaders-on-rescript-side (you can adapt it to use import)

1 Like

Ah I was so close! I was using %raw but was not using require, was trying to import. This was PERFECT @yawaramin. Thank you so much!

1 Like

import with raw seems unsupported

Admin edit: still works fine. See author’s own reply on issue link