Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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



}
//

```