Created
December 10, 2018 10:08
-
-
Save ozluy/1232cd29e24fb5d6ea3160cbc40a02ab to your computer and use it in GitHub Desktop.
User Snippet for VS Code
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
{ | |
"reactFunctionalComponentWithPropTypesESLinted": { | |
"prefix": "rfc", | |
"body": [ | |
"import React from 'react'", | |
"import { Wrapper } from './styled'", | |
"", | |
"const ${1:${TM_FILENAME_BASE}} = () => (", | |
" <Wrapper>", | |
" $0", | |
" </Wrapper>", | |
")", | |
"", | |
"export default ${1:${TM_FILENAME_BASE}}", | |
"", | |
"" | |
], | |
"description": "Creates a React Functional Component with ES7 module system with PropTypes" | |
}, | |
"styledComponent": { | |
"prefix": "styled", | |
"body": [ | |
"import styled from 'styled-components'", | |
"", | |
"export const Wrapper = styled.div``", | |
"", | |
"" | |
], | |
"description": "Creates a Styled Components" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment