JSFiddle - React, Tailwind, and code Playground
by farhan2056
HTML
<ul id="todo-list">
</ul>
JavaScript
var $todo_list = $('#todo-list');
if ( $todo_list.children().length <= 0 ) {
$todo_list.append("<p>You have no tasks</p>");
console.log($(this))
}