use-text-selection
Get current selected text on the page
Import
Source
Docs
Package
Usage
use-text-selection
hook returns current text selection:
Select some text here or anywhere on the page and it will be displayed below
Selected text:
use-text-selection
hook returns current text selection: