JSFiddle - React, Tailwind, and code Playground

by nickadeemus2002

HTML

<div id="wrapper">
    <p>this should be bold</p>
    <p>this should be bold</p>
    <p>this should be bold</p>
    <p class="no">this should not be bold</p> 
</div>
<hr />
<div id="result"></div>

CSS

#wrapper{color:#ff0000;}
#result{padding:10px;background-color:#eee;}
.appendResult{font-weight:bold; color:#0B610B}

JavaScript

var $paragraphs = $('p');
$paragraphs.addClass('appendResult').appendTo('#result');