Skip to content

Conversation

sophiebits
Copy link
Collaborator

Had another one of my friends get confused by this today.

@zpao
Copy link
Member

zpao commented Jun 19, 2013

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]);
Copy link
Member

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talked with @spicyj... nevermind!

zpao added a commit that referenced this pull request Jun 25, 2013
Check that `container` is a valid DOM element
@zpao zpao merged commit 6f04bd9 into facebook:master Jun 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants