Skip to content

Instantly share code, notes, and snippets.

@georgekrax
Created November 13, 2020 20:21
Show Gist options
  • Save georgekrax/8a9f9a02ff0860c5dc918fb8bedb3d76 to your computer and use it in GitHub Desktop.
Save georgekrax/8a9f9a02ff0860c5dc918fb8bedb3d76 to your computer and use it in GitHub Desktop.
`useClassnames` hook snippet for adding custom classNames to components & better Developer-UX
"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