Počítadlo Líbí se React component
React component for easier integration of the Líbí se social button by Seznam.cz.
First make sure you load the client script in the browser:
// Import the client script URL// Add the following JSX snippet to the React component you use to render the// <body> element or the <head> element:// You may, optionally, also include the default styling provided by the// '@seznam/pocitadlo-libi-se-common' package (a dependency of this package, it// will be installed automatically). The styling will be used until the client// script loads.
Now you may put a Líbí se button anywhere on your site (multiple vote buttons on single page are supported):
// Put the following JSX snippet into any React component you want to render the// social button:// Replace entityUrl with URL to the entity (article, video, ...) you want the// votes counted on, e.g. "".
There are multiple customization options at your disposal: