2 ms·
Why provide the Node component as a child and not a prop? Seems less intuitive to me.
by teaearlgraycold 5y ago
Why provide the Node component as a child and not a prop? Seems less intuitive to me.
- jameskerr 5y agoThe library I used for virtualization does this. https://react-window.vercel.app https://react-window.vercel.app I just followed Brian's pattern. I think it looks nice.
- searchableguy 5y agoYou can always set children in the component. <Tree children={Node} />