JSFiddle - React, Tailwind, and code Playground

JavaScript

$('body').append(
  $('<input>', {
    class: 'myClass',
    id: 'myId',
    name: 'myName',
    value: 'test',
    style: 'outline: dashed 2px red'
  })
)