I have trouble to avoid re-renders. Have a look in my simplified example: https://codesandbox.io/s/gracious-satoshi-b3p1u?file=/src/App.js Open the console. I have expensive and heavy code in the child hook which filters a big array (not in this lightweight example). Every time "child has been rendered" get's printed into the console, my browser laggs and crashes if i do it too often.
There is no state in Child. I just use it to add a certain text piece (user can select from a big list of emojis and special chars) if i click to the textarea which needs a callback to communicate. I tried React.useMemo() and useMemo() but neither worked.