Last active
August 9, 2016 13:55
-
-
Save scott-riley/d56a2b8e79d54bbc5771d90793073f42 to your computer and use it in GitHub Desktop.
pls declare ur proptypes now everyone is happy
This file contains hidden or 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
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