zoid icon indicating copy to clipboard operation
zoid copied to clipboard

How can we pass React Component as props?

Open RavenColEvol opened this issue 4 years ago • 1 comments

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.

RavenColEvol avatar Aug 02 '21 16:08 RavenColEvol

Is there any way to share components between Parent and Child ?

RavenColEvol avatar Sep 13 '21 06:09 RavenColEvol