ctrlplusb / react-sizeme

Make your React Components aware of their width and height!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SizeMe causes re-render when clicking child component

pitops opened this issue · comments

I have an issue where the child component is canvas based and on click, it re-renders the component. Is there any way prevent it from happening?

Are you passing a component or a function to the children? Can you give an example please via codesandbox.io?

Closing for now. Please provide a codesandbox.io example and I would be happy to debug.