Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nhobi/3f772f0dae4cefa67cdb0ea28761eee0 to your computer and use it in GitHub Desktop.
Save nhobi/3f772f0dae4cefa67cdb0ea28761eee0 to your computer and use it in GitHub Desktop.
bind.sublime-snippet
<snippet>
<content><![CDATA[
this.${1:func} = this.${1:func}.bind(this);
]]></content>
<description>Bind class methods in constructor for React components.</description>
<tabTrigger>bind</tabTrigger>
<scope>source.js</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment