Skip to content

Instantly share code, notes, and snippets.

@scott-riley
Last active August 9, 2016 13:55
Show Gist options
  • Save scott-riley/d56a2b8e79d54bbc5771d90793073f42 to your computer and use it in GitHub Desktop.
Save scott-riley/d56a2b8e79d54bbc5771d90793073f42 to your computer and use it in GitHub Desktop.
pls declare ur proptypes now everyone is happy
import React, { PropTypes, Component } from 'react';
// all that React code that everyone tells you is shit but you don’t care
// cause there’s dads out there and they’re not gonna kiss themselves
MyFuckinDopeComponent.propTypes = {
amIaRealDev: PropTypes.bool.isRequired,
whosDadWantsKissing: PropTypes.string,
}
// look at that shit if i open this file in 4 months time then i know exactly what props i can fuck wid
export default MyFuckinDopeComponent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment