JSFiddle - React, Tailwind, and code Playground

HTML

<fieldset data-role="controlgroup" data-type="horizontal" id="UPCs">
    <legend class="labelText">UPCs</legend>
    <label for="InputUPC">Starts with</label>
    <input type="text" name="InputUPC" id="InputUPC" />
    <ul id="CandidateUPCs" name="CandidateUPCs" class="ulUPCs"></ul>
</fieldset>

CSS

.labelText {
    font-family: Consolas;
}
.ulUPCs {
    min-height:160px;
    height:auto !important;
    height:160px;
    max-width:344px;
    width:auto !important;
    width:344px;
    border-style:solid;
    border-width:2px;
}

JavaScript

$('#InputUPC').on('keyup', function(e) {
    e.preventDefault();
    if (e.which == 13) {
        var upcPrefix = $.trim( this.value );

        if (upcPrefix !== "") {
            $("#CandidateUPCs").append('<label for=' + upcPrefix + '>' + upcPrefix + ' </label>');
            $("#CandidateUPCs").append('<input type=\"checkbox\" name=' + upcPrefix + ' id=' + upcPrefix + ' />');
            $("#CandidateUPCs").append('<br>');
        }
        this.value = "";
    }
});