gajus / gajus/babel-plugin-react-css-modules
Generate unique class name in css file if it referenced in JSX
Open
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Description
I want to request a feature. Rather than having to use styleName on every element we can put it only on parent element and use existing global class. So JSX syntax will more simpler to look.
For example when I use bootstrap:
```
Title Here
Body Here
```
Will much simpler to look if we put styleName only on parent element:
```
Title Here
Body Here
```
so SCSS:
```
.container { <-- generate only this to be a unique class Name
margin: 0;
.card {
font-size: 14px;
.card-header {
background: #ddd;
}
.card-body {
background: #f8f8f8;
}
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.