gajus / gajus/babel-plugin-react-css-modules
Generate unique class name in css file if it referenced in JSX
- Lingua principale
- JavaScript
- Stelle
- 2k
- Fork
- 159
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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:
```
```
Will much simpler to look if we put styleName only on parent element:
```
```
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;
}
}
}
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
No source file, test, or entry point is named in the issue. Start by tracing how the Babel plugin transforms styleName and how nested SCSS class names are represented; done means parent-only styleName usage produces the requested unique class behavior for the shown Bootstrap example.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- babel, bootstrap, javascript, react, scss
- Ambito
- frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100