Skip to content

Commit

Permalink
feat(utils): add joinClassNames util
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming committed Jun 6, 2022
1 parent b5192cf commit f34b9de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ export function unpatch(obj: any, name: any): void {
export function getReactInstance(o: HTMLElement | Element | Node) {
return o[Object.keys(o).find(k => k.startsWith('__reactInternalInstance')) as string]
}

export function joinClassNames(...classes: string[]): string {
return classes.join(" ");
}

0 comments on commit f34b9de

Please sign in to comment.