Skip to content
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

feat(InfoWindow): component with example #1

Merged
merged 1 commit into from
Nov 8, 2014

Conversation

yhsiang
Copy link
Contributor

@yhsiang yhsiang commented Oct 30, 2014

No description provided.

@@ -66,6 +66,6 @@ module.exports = React.createClass({
},

_render (props, state) {
return null;
return (props.children)? props.children : null;
Copy link
Owner

Choose a reason for hiding this comment

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

Wait, render can return an array?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I can fix this.
But I am not sure you want render just one or multiple?
multiple:
return (props.children)? React.DOM.span(null, props.children): null;
if just support one, there is another solution.

Copy link
Owner

Choose a reason for hiding this comment

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

IMO, it should render children (multiple). However, I'm wondering that a react component can return props.children directly. Is that defined in spec? I might miss it.
If the spec doesn't say so, yeah maybe wrap it into a span would be good.

@tomchentw
Copy link
Owner

Merge for now to upgrade to React 0.12

tomchentw added a commit that referenced this pull request Nov 8, 2014
feat(InfoWindow): component with example
@tomchentw tomchentw merged commit 9898931 into tomchentw:master Nov 8, 2014
cristiandley added a commit that referenced this pull request Jun 16, 2016
* Added Loading Libraries section

#275 lot of people confused about this

* Links to Google Maps Javascript API, adds intro to library import, uses double quotes consistently (#1)

* Revert "Links to Google Maps Javascript API, adds intro to library import, us…" (#2)

* Revert "Revert "Links to Google Maps Javascript API, adds intro to library import, us…"" (#3)
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