<a href={ShareUrl.facebook({ u: 'https://google.com' })}> Share on Facebook </a>
const anchor = document.querySelector('a'); anchor.href = ShareUrl.facebook({ u: 'https://google.com' });
Check README for additional options.
ShareUrl
object available on window
for quick tests.