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

Adds Fragment component #329

Merged
merged 1 commit into from
Jan 2, 2018
Merged

Conversation

bryceosterhaus
Copy link
Member

We were going to add this to our specific project but then figured it would be really useful for the project. Idea came from https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html.

I wanted to some how blacklist all props passed in except for key and children, but I couldn't think of a clean way of doing so. So in the mean time, I thought smaller fix for that was a custom validator that threw a warning on the component itself.

Let me know what you think

@eduardolundgren
Copy link
Contributor

LGTM

@robframpton
Copy link

Rerunning CI.

@robframpton robframpton changed the base branch from master to develop January 2, 2018 17:05
@robframpton
Copy link

Hey @bryceosterhaus

When you get a chance, can you add a short section to https://metaljs.com/docs/guides/jsx-components.html documenting this feature?

@robframpton robframpton merged commit 592c9b0 into metal:develop Jan 2, 2018
@bryceosterhaus
Copy link
Member Author

@Robert-Frampton bryceosterhaus/metaljs.com#89

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.

3 participants