-
Notifications
You must be signed in to change notification settings - Fork 49.3k
Check that container
is a valid DOM element
#112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Seems like the right thing to do! 👍 |
var container = document.createElement('div'); | ||
// jQuery objects are basically arrays; people often pass them in by mistake | ||
expect(function() { | ||
ReactMount.renderComponent(<div></div>, [container]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Not actually important, but we usually write our empty elements as <div/>
. Can you update to do that? I'm pulling this in and getting it reviewed now, but that's my only comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked with @spicyj... nevermind!
Check that `container` is a valid DOM element
Had another one of my friends get confused by this today.