algolia / react-element-to-jsx-string

Turn a ReactElement into the corresponding JSX string
MIT License
490 stars 80 forks source link

fix: keep key in child elements, fixes #301 #841

Open DanielHara opened 8 months ago

DanielHara commented 8 months ago

@armandabric

Fixes https://github.com/algolia/react-element-to-jsx-string/issues/301, test case was added

It's my first contribution, so just let me know if everything is ok according to the guidelines of the project (I didn't find a CONTRIBUTING file), and I'll change the PR accordingly.

Thank you very much! 🚀

DanielHara commented 7 months ago

@armandabric , any feedback on merging this? :)