JSFiddle - React, Tailwind, and code Playground
HTML
<h1>Test partage Facebook</h1>
<script>
document.write("<a href='https://www.facebook.com/sharer/sharer.php?u="+encodeURI(document.location)+"' onclick='window.open(this.href, \"popup\",\"width=600,height=400\"); return false;'>Partager sur Facebook</a>");
</script>
<p>Source : PHPfrance</p>