mazeof-react
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

useClassPrefix

React hooks and other usefull stuff.

Hooks

useClassPrefix Function that will produce a string where every class is prefixed

usage

const pre = useClassPrefix ("my-prefix");
...
<div className={pre("clsA clsB content")}/>

result

<div class="my-prefix-clasA my-prefix-clasB my-prefix-content"/>

Readme

Keywords

Package Sidebar

Install

npm i mazeof-react

Weekly Downloads

2

Version

1.1.3

License

MIT

Unpacked Size

25.5 kB

Total Files

53

Last publish

Collaborators

  • maze014