gajus / gajus/babel-plugin-react-css-modules
Create a webpack loader for creating React components out of styles
Aperta
enhancement
question
- Lingua principale
- JavaScript
- Stelle
- 2k
- Fork
- 159
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Assuming CSS:
```css
.my-list {}
```
Now it is being used as:
```js
import React from 'react';
import './styles.css';
;
```
We could make it into:
```js
import React from 'react';
import {MyList} from './styles.css';
;
```
This aligns with certain users preference for `styled-components`.
The downside to this (`styled-components`) approach is that it abstracts the semantics of the HTML elements.
Just a thought if I run out of things to do.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.