JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/dot-luv/jquery-ui.css">

JavaScript

var test = $('<span/>').append(
      $([
        $('<span/>').append(
          $('<a>').attr('href', 'http://google.com').text('foo')
        ).get(0),  // Get DOM element
        $('<span/>').text('Google').get(0)// Get DOM element
      ])
    );

        $('body').append(test);