-
Notifications
You must be signed in to change notification settings - Fork 633
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
Do not rely anymore on createFragment #175
Conversation
…16. Maybe this should only be a peerDependency to work both with React r15 and React r16?
…ment. (Or just wait for JSX syntax for fragments)
…nt when we can do it as directly, in my understanding)
…as we are constructing an array of child elements. Better stick with returning an array of JSX keyed elements (which will work on both React r15 and r16)
The Node versions for running test have been updated: this was the reason of the failure (Node v4 was getting kind of old for some dependencies to be installed). I think this is ready to be merged: been using it in production from more than one month now, with no issue. It will make the module easier to run on React v16 and thus continue to make it attractive... as it rightfully does its job! |
Ok, thank you. |
They could be generated by the users from their own Webpack (or other) config
Use Webpack v4 and last Babel versions
…c is simple enough classnames is great, but including it for using it one time is a bit overkill Also for AdeleD#85
(This is just latest jest-cli version that cannot install on Node 5)
Ok, for me this is ready to merge. To recap:
This should make the project more easier to use in modern React projects. |
Following AdeleD#189 suggestions
Thank you very much for your work on this PR! |
The package react-addons-create-fragment is deprecated and should not be used anymore.
The recommended approach is to use an array and key fragment elements (See facebook/react#9207).
Seems we can do that easily!
An alternative would be to use the maybe-coming JSX syntax for fragments.
facebook/jsx#84
Nevertheless it still imply creating an array of fragments (instead of an object as for
createFragment
).PS. I was having issues with the last version of react-paginate and React r16 due to create-fragment, so I've done this PR. (I think it works on React r16 following the version of react-addons-create-fragment used. But better not use if we can do without: the installation is simpler)
PPS. I updated some bits to make it easier to test the project.