Skip to content

Instantly share code, notes, and snippets.

@tommymarshall
Created June 3, 2014 16:57
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 tommymarshall/1711068f8fc59a025b7d to your computer and use it in GitHub Desktop.
Save tommymarshall/1711068f8fc59a025b7d to your computer and use it in GitHub Desktop.
React.createClass({
componentDidMount: function() {
this.foo = 'bar';
},
componentWillUnmount: function() {
this.foo = null;
},
render: function() {
return (
<div/>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment