Coming soon - Get a detailed view of why an account is flagged as spam!
view details
7
Coming here from svelteland... is there a way to put CSS module inside JS?
Post Body

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?

Author
Account Strength
100%
Account Age
18 years
Verified Email
Yes
Verified Flair
No
Total Karma
8,784
Link Karma
3,270
Comment Karma
5,232
Profile updated: 6 months ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago