Skip to content

Instantly share code, notes, and snippets.

@betiol
Created August 20, 2016 19:46
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 betiol/379ace159a34bb5a4009def58b72beb0 to your computer and use it in GitHub Desktop.
Save betiol/379ace159a34bb5a4009def58b72beb0 to your computer and use it in GitHub Desktop.
React Statless Component
import React, {PropTypes} from 'react';
const $NAME = (props) => {
return (
);
}
$NAME .PropTypes = {
myProp: PropTypes.string.isRequired
};
export default $NAME;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment