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

Create a webpack loader for creating React components out of styles

Aperta
#78 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
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.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.