JSFiddle - React, Tailwind, and code Playground

HTML

<div id="container">
        <div id="error">
            <h2>hello</h2>
        </div>
    </div>

JavaScript

$(function() {
        $('#error').html('<p>There are 4 horses.</p>');
 });