(null);
const [visible, setVisible] = useState(false);
useLayoutEffect(() => {
const el = ref.current;
if (el) return observe(el, setVisible);
}, []);
if (height) style = { ...style, height };
if (rowAttrs) Object.assign(rest, rowAttrs(indexOffset));
return (
{visible && items.map((item, i) => children(item, i + indexOffset))}
);
}