As part of requirement of my current project we needed to use customary designs root name of each tree so easiest solution would be to pass React Element
After trying some sketchy stuff I realized when I type cast JSX.Element as string nothing breaks within the library so started on checking out library code.
After realization because of the support of false values in ObjectAttributesobject type also works perfectly fine with exception that ObjectAttributes contains [Object object] as key
so it needed only adding handling to replace this {} to string to just be "ReactElement" string
As part of requirement of my current project we needed to use customary designs root name of each tree so easiest solution would be to pass React Element
After trying some sketchy stuff I realized when I type cast
JSX.Element as string
nothing breaks within the library so started on checking out library code. After realization because of the support offalse
values inObjectAttributes
object
type also works perfectly fine with exception that ObjectAttributes contains[Object object]
as keyso it needed only adding handling to replace this
{} to string
to just be"ReactElement" string
Which I thought is the most appropriate name