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

Pass function as children. #64

Merged
merged 3 commits into from
Oct 18, 2016
Merged

Conversation

eightypop
Copy link
Contributor

This addresses #55 and allows the user to pass a function as the child of the MediaQuery component, allowing for terser conditional rendering.

Copy link
Owner

@yocontra yocontra left a comment

Choose a reason for hiding this comment

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

LGTM - just that doc fix and I'll merge + publish

@@ -109,6 +109,22 @@ var A = React.createClass({
});
```

###Rendering with a child function
Copy link
Owner

Choose a reason for hiding this comment

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

space after #, md style for this project

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.

None yet

2 participants