Open
Description
Right now, react-element-to-jsx-string seems to ignore function children. With the new context API using a function for children, this is extra important.
Right now, react-element-to-jsx-string seems to ignore function children. With the new context API using a function for children, this is extra important.
Activity
pascalduez commentedon Jun 9, 2018
Dupe of #63
ProdigySim commentedon Aug 17, 2018
There's a number of different patterns for overloading
children
outlined in this article: https://medium.com/@martin_hotell/react-children-composition-patterns-with-typescript-56dfc8923c64I'm using the 2nd one (named slot projection), and this also kills react-element-to-jsx-string:
DavidBabel commentedon Oct 23, 2018
Any news for this issue ?
This missing feature make the lib kind of useless for newGen React.
DavidBabel commentedon Oct 24, 2018
This PR is a first approach to fix the issue : #317
In my case it solve completely my problem.
march08 commentedon May 15, 2019
Cannot really confirm that it solved for me. Otherwise really great lib, worked the best so far.
My code:
Result
Options
Cheers guys