Coming here from svelteland... is there a way to put CSS module inside JS?
I see that in solidjs we can create a component.js file, and then an accompanying styles.module.css. However, one of the things I liked about Svelte is the ability to see (in the same .svelte
file) what styles were being used by the component's code. For example, if you refactor and stop using a CSS style, VS Code would mark the style as unused.
Is there a way to define styles right inside the JS file?