JSFiddle - React, Tailwind, and code Playground
HTML
<div id="output"></div>
JavaScript
function output(txt) {
$("#output").append(txt + "<br>");
}
$(function() {
$(function() {
output("I must run just after ready");
});
});
$(function() {
output("I want to run on ready");
});
$(function() {
output("I also want to run on ready");
});