Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. snippet react-functional-component
  2. alias rfc
  3. abbr React.FC<T> = (p): JSX.Element => {..}
  4. options head
  5. import React from 'react';
  6.  
  7. interface ${1:component-name}Props{
  8. ${2}
  9. }
  10.  
  11. export const $1: React.FC<$1Props> = (props): JSX.Element => {
  12. const {${3}} = props;
  13.  
  14. return (
  15. ${4}
  16. );
  17. };
  18.  
  19. export default $1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement