Created
June 30, 2014 05:22
-
-
Save hankyates/044cacce91cdc00c7b32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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