Created
April 14, 2019 20:23
-
-
Save ctaylo21/e2a4151177ee0195edcaa99fe4fafd3a to your computer and use it in GitHub Desktop.
Snippet file for Typescript React files
This file contains 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
snippet react-functional-component | |
alias rfc | |
abbr React.FC<T> = (p): JSX.Element => {..} | |
options head | |
import React from 'react'; | |
interface ${1:component-name}Props{ | |
${2} | |
} | |
export const $1: React.FC<$1Props> = (props): JSX.Element => { | |
const {${3}} = props; | |
return ( | |
${4} | |
); | |
}; | |
export default $1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment