JSFiddle - React, Tailwind, and code Playground

HTML

<div></div>

JavaScript

$('<select />')
    .attr('name', 'location')
    .append('<option>Location 1</option>',
            '<option>Location 2</option>',
            '<option>Location 3</option>')
    .appendTo('div');