Skip to content

Instantly share code, notes, and snippets.

@jonathasborges1
Created February 10, 2023 20:49
Show Gist options
  • Save jonathasborges1/3304af0496a76692e923dd1477ee734f to your computer and use it in GitHub Desktop.
Save jonathasborges1/3304af0496a76692e923dd1477ee734f to your computer and use it in GitHub Desktop.
Exemplo de Snippets usando react com arrow functions
"React Componet default ArrowFunction" : {
"prefix": "rfx",
"body" : [
"import React from 'react';\n",
"interface Props {",
"\tchildren?: React.ReactNode;",
"}\n",
"const Component: React.FC<Props> = ({ children, ...props }) => {",
"\treturn (",
"\t\t<>{children}</>",
"\t)",
"}\n",
"export default Component",
],
"description": "Cria um componente em react personalizado usando arrowfuncion"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment