Skip to content

Instantly share code, notes, and snippets.

@nmccready
Created December 14, 2018 18:25
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 nmccready/a852c2302a35d4ee10faff4381831d21 to your computer and use it in GitHub Desktop.
Save nmccready/a852c2302a35d4ee10faff4381831d21 to your computer and use it in GitHub Desktop.
Better COmments Example
// BY BETTER COMMENTS https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments
// TODO Yay Common standard
// * TODO urgent or some other meaning (better comments says urgent but red seems better)
// !! TODO Urgent or Deprecated?
// @todo not identifiable as this is a standard for block comments
// !! @todo look to get color I must put !!
// ? should we do this
// NOTE - probabaly can add something for this
// FIXME
/**
* FIXME something
* NOTE something
*
* TODO Something
* * TODO
* !! TODO Something else
* ? do this?
*
* @param {} props
*
* @throws one color
* @type one color
* @todo one color
* !! @todo
* @typedef one color
* crap
*/
constructor(props) {
super(props);
// ensures that the debounce behavior is correct
this.onChange = debounce(this.props.onChange, props.debounce);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment