gajus / gajus/babel-plugin-react-css-modules

Generate unique class name in css file if it referenced in JSX

Open
#284 0 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.