Created
November 13, 2020 20:21
-
-
Save georgekrax/8a9f9a02ff0860c5dc918fb8bedb3d76 to your computer and use it in GitHub Desktop.
`useClassnames` hook snippet for adding custom classNames to components & better Developer-UX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"useClassnames": { | |
"prefix": "useClassnames", | |
"body": [ | |
"const [classNames, rest] = useClassnames(\"\", props);" | |
], | |
"description": "Creates a useClassnames hook, with its default return array" | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment