Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uppercod/as-cn
🎁 This small function allows you to manage class names
https://github.com/uppercod/as-cn
Last synced: about 4 hours ago
JSON representation
🎁 This small function allows you to manage class names
- Host: GitHub
- URL: https://github.com/uppercod/as-cn
- Owner: UpperCod
- License: gpl-3.0
- Created: 2018-01-10T15:23:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-19T18:07:55.000Z (almost 7 years ago)
- Last Synced: 2024-10-01T09:01:59.271Z (about 1 month ago)
- Language: JavaScript
- Size: 34.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# as-cn
This small function allows you to manage class names
## Mode 1
In this way, you can extract names of an object using the index, which has a definition check.
``` javascript
import {h} from 'preact';
import cn from 'as-cn';
import './style.css';export default function(){
return
}//
```## Mode 2
In this way you can extract names of a module by means of a parallel object that points to
each property of the module object.``` javascript
import {h} from 'preact';
import cn from 'as-cn';
import style from './style.css';export default function(){
return
}
//
```