JSFiddle - React, Tailwind, and code Playground

HTML

<gcse:search></gcse:search>

JavaScript

(function () {
    var cx = '009077552906670546181:2ufng0dmsos';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
})();