{({ textArea: TextArea, sendButton: SendButton }) => (
Custom Layout:
{SendButton}
{TextArea}
)}
,
);
const customLayout = screen.getByTestId("custom-layout");
expect(customLayout).toBeDefined();
expect(customLayout.textContent?.includes("Custom Layout:")).toBe(true);
});
it("passes containerRef to children render prop", () => {
const ref = React.createRef