Skip to content

Instantly share code, notes, and snippets.

@mt-shihab26
Last active March 13, 2023 18:46
Show Gist options
  • Select an option

  • Save mt-shihab26/545ab4743fa75d7e4b5307ee1e57dc81 to your computer and use it in GitHub Desktop.

Select an option

Save mt-shihab26/545ab4743fa75d7e4b5307ee1e57dc81 to your computer and use it in GitHub Desktop.
{
"Typescript React Functional Component with Props": {
"prefix": "fcp",
"body": [
"import type { FC } from \"react\";\n\ntype Props = {};\n\nconst $1: FC<Props> = () => {\n return <>$1</>;\n};\n\nexport default $1;\n"
]
},
"Simple Typescript React Functional Component": {
"prefix": "fcs",
"body": ["const $1 = () => {\n return <>$1</>;\n};\n\nexport default $1;\n"]
},
"Export default": {
"prefix": "ed",
"body": ["export default $1;\n"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment