Skip to content

Instantly share code, notes, and snippets.

@brianveltman
Created November 5, 2016 13:27
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 brianveltman/a541df54cd4230837c273f0eb8105d6c to your computer and use it in GitHub Desktop.
Save brianveltman/a541df54cd4230837c273f0eb8105d6c to your computer and use it in GitHub Desktop.
Create new PropType in React
<snippet>
<content><![CDATA[
${1:Component}.propTypes = {
${2:method}: React.PropTypes.${3:type}.isRequired
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>proptype</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment