JSFiddle - React, Tailwind, and code Playground

by doug65536

HTML

<p>Hello</p>

JavaScript

$('p').attr('required', '');