JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://ivaynberg.github.com/select2/select2-3.3.2/select2.js"></script>
<link rel="stylesheet" href="http://ivaynberg.github.com/select2/select2-3.3.2/select2.css">
<meta charset=utf-8 />
<title>JS Bin</title>
<body>
    
    <select id="e2" multiple style="width:100%">
        <option value="1">Mustard</option>
        <option value="2">Ketchup</option>
        <option value="3">Relish</option>
    </select>
</body>

JavaScript

$("#e2").select2({tags:["red", "green", "blue"]});