Skip to content

Update component when deep child is updated #1

@qimingweng

Description

@qimingweng

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions