DOMuseTextSelectionTrack the text the user has currently selected on the page.APIuseTextSelection.d.tstsuseTextSelection(): stringView source on GitHubRelated hooksuseEventListenerSubscribe to a window, document or element event with cleanup.useClickOutsideRuns a callback on outside click.useMousePositionCursor coordinates within an element.useDeepCompareEffectuseLongPress