zoid
zoid copied to clipboard
How can we pass React Component as props?
I'm trying to create a Modal component with zoid. I'm trying to do it by Render Props method where I've created a zoid element which takes children function like
<App>{window.xprops.children((handleMouseDown) => handleMouseDown())}</App>
But what I'm getting in xprops is ZAlgoFunciton which is not what I wanted.
I'm still new to this library i tried finding solution but was unable to find one.
Is there any way to share components between Parent and Child ?