Open thisroot opened 6 years ago
Same problem over here. Tried passing markup to body prop using string and array syntax but still cant register actions/events.
Create an external component, then render it inside the popoverProps.body
.
const Test = () => (
<div key="b" onClick={() => console.log('works')}>
Popover contents
</div>
);
....
const popoverProps = {
...
body: <Test />,
};
Hi, i try to pass close action into to popover body, but it cant work fo me. Where i get mistake?