gajus / gajus/babel-plugin-react-css-modules
Create a webpack loader for creating React components out of styles
Open
enhancement
question
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.