gajus / gajus/babel-plugin-react-css-modules
Establish a convention for extending the styles object at the runtime
Offen
enhancement
- Vorherrschende Sprache
- JavaScript
- Sterne
- 2k
- Forks
- 159
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
`react-css-modules` [uses `styles` property to overwrite the default component styles](](https://github.com/gajus/react-css-modules#extending-component-styles)).
`generateClassName` could look for `props.styles` and `this.props.styles` when constructing the `className` value to determine whether a style needs to be overwritten.
There could be an option to force use of `generateClassName` even when `styleName` is a string literal value.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.