astro-classname
A small and powerful package which can help you change or add classnames quickly and easily
install
npm:
npm install astro-classname
yarn:
yarn add astro-classname
Usage
You can set anything to the classname,but the value that was associated with a given key is falsy, it will not be effective。Object has the highest priority
Before you use,you should require or import the package
You can also add classname to dom directly
; // tom bob; // tom bob; // tom; // tom-bob; // bob; // bob // tom lili 0 1
Usage with react!
;
Usage with jquery!
;;
You can use all the methods in anywhere