Skip to content

Instantly share code, notes, and snippets.

@velopert
Created September 4, 2016 15:37
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save velopert/8f22cf0830e65f6de8ae99808c5b92f5 to your computer and use it in GitHub Desktop.
Save velopert/8f22cf0830e65f6de8ae99808c5b92f5 to your computer and use it in GitHub Desktop.
React Component Snippet - rc
# 이 부분을 File - Snippet 에 들어가서 복사 & 붙여넣기 하세요.
'.source.js':
'React Component':
'prefix': 'rc'
'body': '''
import React, { Component, PropTypes } from 'react';
const propTypes = {
};
const defaultProps = {
};
class ${1:MyComponent} extends Component {
constructor(props) {
super(props);
}
render() {
return(
<div>${1:MyComponent}</div>
);
}
}
${1:MyComponent}.propTypes = propTypes;
${1:MyComponent}.defaultProps = defaultProps;
export default ${1:MyComponent};
'''
@lsgsg
Copy link

lsgsg commented Jan 12, 2019

감사합니다 :D

@Tae-Hyeon
Copy link

감사합니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment