JSFiddle - React, Tailwind, and code Playground

HTML

<div id="share"></div>

JavaScript

$(function() {
    var $form = $('<form />', { action: 'sharer.php', method: 'POST' }),
        frmSave = $('<div />', { class: 'appm', text: 'Save this' }),
        frmRName = $('<input />', { id: 'rname', name: 'routename', placeholder: 'Name', type: 'text' }),
        frmRDesc = $('<input />', { class: 'address', id: 'rdescription', name: 'routedescription', placeholder: 'description', type: 'text' }),
        frmRTags = $('<input />', { id: 'tags', name: 'routetags', placeholder: 'tags', type: 'text' }),
        frmButton = $('<input />', { id: 'savebutton', type: 'submit', value: 'Save' });
    
    $form.append(frmSave, frmRName, frmRDesc, frmRTags, $('<br />'), frmButton).appendTo($('#share'));
})