Right now the component is updated when the children prop is different. https://github.com/qimingweng/react-center-component/blob/master/src/index.js#L35-L38. However, this could perhaps recursively search through the children to diff...
Or, maybe another approach is to check if the top and left offset are different instead of if the children are different.
Right now the component is updated when the children prop is different. https://github.com/qimingweng/react-center-component/blob/master/src/index.js#L35-L38. However, this could perhaps recursively search through the children to diff...
Or, maybe another approach is to check if the top and left offset are different instead of if the children are different.