DEV Community

Discussion on: How to use styles when publishing a react component to npm?

Collapse
 
papeloto profile image
Víctor Navarro

The component/s itself should import the CSS with Css modules for example. If you want to use them globally you can import the styles file on the index.tsx file