JSFiddle - React, Tailwind, and code Playground
HTML
<p>For example, I have some text on my page and I want to find all the words hello and make them bold.</p>
JavaScript
$('p').html( $('p').html().replace(/hello/g, '<strong>hello</strong>') )
<p>For example, I have some text on my page and I want to find all the words hello and make them bold.</p>
$('p').html( $('p').html().replace(/hello/g, '<strong>hello</strong>') )