JSFiddle - React, Tailwind, and code Playground

by john_s

HTML

<script src="http://ivaynberg.github.io/select2/select2-3.3.2/select2.js"></script>
<link rel="stylesheet" href="http://ivaynberg.github.io/select2/select2-3.3.2/select2.css">
<form>
<input type="hidden" id="select1" value="" /><br />
<br />
<input type="hidden" id="select2" value="" /><br />
</form>

JavaScript

var AIRPORT_CHOICES = [
    { id: 'AES', text: 'Aalesund, Norway (AES)' },
    { id: 'AAR', text: 'Aarhus, Denmark (AAR)' },
    { id: 'YXX', text: 'Abbotsford, Canada (YXX)' },
    { id: 'ABR', text: 'Aberdeen, SD (ABR)' },
    { id: 'ABZ', text: 'Aberdeen, Scotland (ABZ)' },
    { id: 'ABI', text: 'Abilene, TX (ABI)' },
    { id: 'AUH', text: 'Abu Dhabi,UA Emirates (AUH)' },
    { id: 'ABV', text: 'Abuja, Nigeria (ABV)' },
    { id: 'ACA', text: 'Acapulco, Mexico (ACA)' },
    { id: 'ACC', text: 'Accra, Ghana (ACC)' },
    { id: 'ADK', text: 'Adak Island, AK (ADK)' },
    { id: 'ADL', text: 'Adelaide, Australia (ADL)' },
    { id: 'AGU', text: 'Aguascalientes, Mexico (AGU)' },
    { id: 'AJA', text: 'Ajaccoi, Corsica (AJA)' },
    { id: 'CAK', text: 'Akron/Canton, OH (CAK)' },
    { id: 'ALS', text: 'Alamosa-Almosa, CO (ALS)' },
    { id: 'ABY', text: 'Albany, GA (ABY)' },
    { id: 'ALB', text: 'Albany, NY (ALB)' },
    { id: 'ABQ', text: 'Albuquerque, NM (ABQ)' },
    { id: 'LEG', text: 'Aleg, Mauritania (LEG)' },
    { id: 'AEX', text: 'Alexandria, LA (AEX)' },
    { id: 'ESF', text: 'Alexandria, LA (ESF)' },
    { id: 'AHO', text: 'Alghero, Fertilia, Italy (AHO)' },
    { id: 'ALC', text: 'Alicante, Spain (ALC)' },
    { id: 'ABE', text: 'Allentown, PA (ABE)' },
    { id: 'AIA', text: 'Alliance, NE (AIA)' },
    { id: 'ALA', text: 'Almaty, Kazakhstan (ALA)' },
    { id: 'APN', text: 'Alpena, MI (APN)' },
    { id: 'AOO', text: 'Altoona-Martinsburg,PA (AOO)' },
    { id: 'AMA', text: 'Amarillo, TX (AMA)' },
    { id: 'AMM', text: 'Amman, Jordan (AMM)' },
    { id: 'AMS', text: 'Amsterdam, Netherlands (AMS)' },
    { id: 'ANA', text: 'Anaheim, CA (ANA)' },
    { id: 'SNA', text: 'Anaheim-Orange Cnty, CA (SNA)' },
    { id: 'ANC', text: 'Anchorage, AK (ANC)' },
    { id: 'AOI', text: 'Ancona, Italy (AOI)' },
    { id: 'AXA', text: 'Anguilla (AXA)' },
    { id: 'ANU', text: 'Antigua (ANU)' },
    { id: 'ANR', text: 'Antwerp, Belgium (ANR)' },
    { id: 'ATW',...