JSFiddle - React, Tailwind, and code Playground

HTML

<a data-url="http://code-bude.net" href="http://www.facebook.com/share.php?u=http://code-bude.net" class="share-facebook">{counter}</a>

JavaScript

$.each($('.share-facebook'), function(i, v){
     var url = $(this).attr('data-url');
     var parent = $(this);
     if (url !== undefined)
     {
         
         $.getJSON("http://graph.facebook.com/?ids="+url+"&callback=?", function(data){
             if (data[url].shares !== undefined)
             {
                 parent.text(data[url].shares);
             }
         });
     }
 });