Skip to content

Instantly share code, notes, and snippets.

@hankyates
Created June 30, 2014 05:22
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 hankyates/044cacce91cdc00c7b32 to your computer and use it in GitHub Desktop.
Save hankyates/044cacce91cdc00c7b32 to your computer and use it in GitHub Desktop.
var wat = React.createClass({
render: function() {
return <div className="wat" onClick={function() {console.log('hi')}}/>
}
});
ReactTestUtils.renderIntoDocument(<wat/>);
var huh = ReactTestUtils.scryRenderedDOMComponentsWithTag(wat, 'div');
ReactTestUtils.Simulate.click(huh);
// Error: InstanceHandle not injected before use!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment