JSFiddle - React, Tailwind, and code Playground

by Dineshkani

HTML

<div id="firstexample"></div>
<div id="secondexample"></div>

JavaScript

$("#firstexample").html("My First"); //Jquery

document.getElementById("secondexample").innerHTML = "This is second"; // Javascript

// In here both are doing the same functionality but the difference is Jquery is easy to select using the CSS selectors but in Javascript its little too complex.