🖱️📝 useTextSelection
This hook keeps track of what the user has highlighted, and where it is placed on the screen. It can be used, for example, to create a Share Tooltip similar to the one Medium has.
Try it yourself by highlighting this text.
View on Github