mazeof-react
Version:
some goods for your react
19 lines (15 loc) • 342 B
Markdown
# useClassPrefix
React hooks and other usefull stuff.
## Hooks
**useClassPrefix**
Function that will produce a string where every class is prefixed
usage
```tsx
const pre = useClassPrefix ("my-prefix");
...
<div className={pre("clsA clsB content")}/>
```
result
```html
<div class="my-prefix-clasA my-prefix-clasB my-prefix-content"/>
```