react-likecoin
v1.0.0
Published
Unofficial plugin for LikeCoin on React and Gatsby. Civic Liker is a movement to realign creativity and reward, by the technology of nano-payment to decouple media’s income from advertising needs. Any website can enable the LikeCoin button by installing t
Downloads
5
Maintainers
Readme
react-likecoin
Unofficial plugin for LikeCoin on React, Nextjs or Gatsby.
Civic Liker is a movement to realign creativity and reward, by the technology of nano-payment to decouple media’s income from advertising needs. Any website can enable the LikeCoin button by installing the plugin. Each “Like” from the readers let creators to be rewarded.
Install
npm i react-likecoin
## or
yarn react-likecoin
How to use
In your React component, add the following to use react-likecoin
:
import LikeCoin from 'react-likecoin';
// render
<LikeCoin userId="" />
| Props | Required? | Description |
|-------------------|--------------|-------------------------------------------------------------------------------------|
| userId
(string) | Y | Your LikeCoin ID. |
| referrer
(string) | N / Y for SSR | Referrer URL, your page current URL for LikeCoin's tracking. Only required for SSR. |
| style
(object) | N | Optional styling. |
Author
- Andrew Mok (@andrewmmc)
Questions?
- Please feel free to open an issue here or contact me via email.