JSFiddle - React, Tailwind, and code Playground

by sridhar reddy

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>
<button id="getFruit">Get Fruit</button>

<script>
	$('#getFruit').click(function(){
    	window.open( window.location.host + '/getFruit/banana', '_blank');
    
    })
	$('#getFruit').attr('onclick', window.location.host + '/getFruit/banana')
</script>