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
Support Fragments #36
Comments
ping @mlmorg |
@mlmorg Do you have any feedback? |
Sorry for the delay (holiday time)! This sounds good to me. If you're able to implement this, I would happily merge! |
lo1tuma
added a commit
to lo1tuma/react-hyperscript
that referenced
this issue
Jan 31, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Improved fragment support has been shipped with React 16.2.0. As there is even a special JSX syntax for fragments I thought it would be nice to also have a convenient way in
react-hyperscript
to create fragments.My API proposal would be the following:
h(listOfElements)
Returns a React element.
Array
- An array of React elements that will be wrapped withReact.Fragment
.Example:
This would be equivalent to:
I would be happy to implement this if the proposal gets accepted.
The text was updated successfully, but these errors were encountered: