JSFiddle - React, Tailwind, and code Playground
HTML
<p>
The future of manned space exploration and development of space depends critically on the
creation of a dramatically more proficient propulsion architecture for in-space transportation.
A very persuasive reason for investigating the applicability of nuclear power in rockets is the
vast energy density gain of nuclear fuel when compared to chemical combustion energy...
</p>
CSS
span.touch {
font-weight: bold;
}
JavaScript
$(document.body).on('click', 'span', function( event ) {
$( event.target ).addClass('touch');
});
$('p').html(function( _, html ) {
return html.split(/\s+/).reduce(function( c, n ) {
return c + '<span>' + n + ' </span>'
});
});