Skip to content

Conversation

@zpao
Copy link
Member

@zpao zpao commented Mar 10, 2015

No description provided.

@zpao zpao mentioned this pull request Mar 10, 2015
29 tasks
Copy link
Contributor

Choose a reason for hiding this comment

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

we are missing a type on children

Copy link
Member Author

Choose a reason for hiding this comment

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

Doesn't have a type, it's var args and can be an array, an element, a string, a number, a bool... which basically maps to ReactNode but that's not really a super well defined type, so meh. We already have it exactly like this for createElement

Copy link
Contributor

Choose a reason for hiding this comment

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

if it's a varargs, it shouldn't be inside array brackets, should it?

Copy link
Member Author

Choose a reason for hiding this comment

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

its optional.

anyway, let's fix all of these as a whole. if you really want to do it now, do it and make sure it happens in all our API docs. But we won't change just this one - this fits with the rest.

Copy link
Contributor

Choose a reason for hiding this comment

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

Meh, I prefer incremental correctness over consistency, but sure. Looks good to me.

zpao added a commit that referenced this pull request Mar 10, 2015
@zpao zpao merged commit deeb55b into facebook:master Mar 10, 2015
@zpao zpao deleted the 0.13-docs-cloneelement branch April 16, 2015 16:36
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