DEV Community

Discussion on: New React Hooks Pattern? Return a Component

Collapse
 
droopytersen profile image
Andrew Petersen

You could. But that is used to render what is basically a leaf node component that is very small. So the cost of memoizing and checking for changes could be higher than letting the react reconciler diff the vdom.