Created
February 10, 2023 20:49
-
-
Save jonathasborges1/3304af0496a76692e923dd1477ee734f to your computer and use it in GitHub Desktop.
Exemplo de Snippets usando react com arrow functions
This file contains hidden or 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
Show hidden characters
"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