JSFiddle - React, Tailwind, and code Playground

by thecodeparadox

HTML

<div>
    <ul>
        <li></li>
        <li>
            <ul><li></li></ul>
        </li>
        <li></li>
    </ul>
</div>

JavaScript

var html = '<h1></h1><ul><li></li><li></li></ul>';

console.log($('ul', $(html)));