https://github.com/chalarangelo/combine-class-names
JS Utility for cleaner className template literals in React
https://github.com/chalarangelo/combine-class-names
Last synced: 3 months ago
JSON representation
JS Utility for cleaner className template literals in React
- Host: GitHub
- URL: https://github.com/chalarangelo/combine-class-names
- Owner: Chalarangelo
- License: mit
- Created: 2020-06-03T07:17:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T07:47:01.000Z (over 2 years ago)
- Last Synced: 2025-02-28T05:48:01.732Z (3 months ago)
- Language: JavaScript
- Size: 726 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @chalarangelo/combine-class-names
JS Utility for cleaner className template literals in React
## Usage
```sh
npm i @chalarangelo/combine-class-names
``````jsx
import combineClassNames from '@chalarangelo/combine-class-names';const MyComponent = ({
isCool,
enabled = true,
active = false,
className
}) => (
);ReactDOM.render(
,
document.getElementById('root')
);// Result:
```