JSFiddle - React, Tailwind, and code Playground

by mofle

HTML

<p>some text to select. open console</p>

JavaScript

$(document).on('selectionchange', function(e) {
    console.log('selectionchange', e.originalEvent); 
});