JSFiddle - React, Tailwind, and code Playground HTML <li>sdfsgfhsgfhsghfgshfgj</li> JavaScript $('li').click(function() { $(this).select(); });