Skip to content

Instantly share code, notes, and snippets.

@drFabio
Created July 27, 2020 13:46
Show Gist options
  • Save drFabio/f6de7d9c6a1245f51b2a42a80d0f3561 to your computer and use it in GitHub Desktop.
Save drFabio/f6de7d9c6a1245f51b2a42a80d0f3561 to your computer and use it in GitHub Desktop.
{
"FunctionalComponent": {
"prefix": "reafc",
"body": [
"import React, {FC} from 'react'",
"",
"export interface ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}}Props {",
"}",
"",
"export const ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}}:FC<${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}}Props> = () => {",
" return (",
" <>",
" </>",
" )",
"}"
],
"description": "Log output to console"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment