I want to use google custom search engine in my React application. But I have a problem to apply it.
I checked in google website that the code is
<script>
(function() {
var cx = '008391824253360889328:j5posmpyok0';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
But I have no idea how to change it into jsx that can use in React.
Can anyone help? Thanks.