Skip to content

useState Problem for Re-render #137

@doganoruc

Description

@doganoruc

Hello,
Thanks for this amazing library. It seems very useful who don't want to write their own Draggable component. However, I couldn't understand how we can get coordinates for the whole component. I'm trying to use the useState hook to get X and Y coordinates. When I use it inside onDrag, the Draggable stops moving in any direction. Could you help me with this problem please?

Thanks a lot.

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