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>
    
    <input type="hidden" id="e2" multiple style="width:300px">
</body>

JavaScript

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