Skip to content

Instantly share code, notes, and snippets.

@ctaylo21
Created April 14, 2019 20:23
Show Gist options
  • Save ctaylo21/e2a4151177ee0195edcaa99fe4fafd3a to your computer and use it in GitHub Desktop.
Save ctaylo21/e2a4151177ee0195edcaa99fe4fafd3a to your computer and use it in GitHub Desktop.
Snippet file for Typescript React files
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