JSFiddle - React, Tailwind, and code Playground

by Shah Danial

HTML

<div class='share-count'></div>

JavaScript

$.getJSON('http://api-public.addthis.com/url/shares.json?url=http://twitter.com',function (ss) {
		//	if (typeof(ss.shares) != 'undefined') {
				$('.shares-count').html(ss.shares);

//			} else {
	
//  $('.shares-count').html('20');

			}