Open illiaChaban opened 2 days ago
Update: if i pass a function that returns JSXElement instead of JSXElement instead, it works Although i don't think it's a fully expected behavior and I would still expect passing JSXElements to work i.e
<Separate items={[() => <span>Hello</span>, () => <span>world</span>]} />
Duplicates
Latest version
Current behavior π―
When i pass jsx elements as a prop to my separation component I get hydration errors
Expected behavior π€
it should work without hydration errors "Hydration Mismatch. Unable to find DOM nodes for hydration key ..."
Steps to reproduce πΉ
Stackblitz link
Steps:
const Separate = (p: { items: JSX.Element[] }) => { return (
); };