Skip to content

Instantly share code, notes, and snippets.

@Nfinley
Last active June 11, 2018 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nfinley/d8c67931eefb2966e038f7549dcc7845 to your computer and use it in GitHub Desktop.
Save Nfinley/d8c67931eefb2966e038f7549dcc7845 to your computer and use it in GitHub Desktop.
A react snippet for a stateless component
import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {};
const defaultProps = {};
function $ComponentName$({ props }) {
return (
<div className="">
</div>
);
};
$ComponentName$.propTypes = propTypes;
$ComponentName$.defaultProps = defaultProps;
export default $ComponentName$;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment