JSFiddle - React, Tailwind, and code Playground

HTML

<div id="info">
	
		<button id="btn">dodaj</button>

	</div>

JavaScript

var URL = 'https://api.github.com/users';

			$.getJSON(URL,processContacts);
				 function processContacts(data) {
				 
				 var infoHTML='';

				 $.each(data,function(contact, contactInfo) {
				 infoHTML+='<p>Dane kontaktowe: ' + contactInfo.login + '</p>';
				 infoHTML+='<img src="'+ contactInfo.avatar_url + '" width="100" height="100"></img>'
				 }); 


				 $("#btn").click(function() {
				 	$('#info').html(infoHTML);
				 });
			 }