0.5.2 • Published 2 years ago

react-fb-like v0.5.2

Weekly downloads
491
License
MIT
Repository
github
Last release
2 years ago

#React FB Like React component for facebook Like and Share button!

##How to install Live Demo

npm install react-fb-like --save

##How to use

var ReactFBLike = require('react-fb-like');
<ReactFBLike language="ko_KR" appId="717589285046812" version="v2.12" />

ES2015 style

import ReactFBLike from 'react-fb-like';

##It renders only once If you go to the another page and come back to where this component locates, sometimes this component disappears. This is because this component is rendered only once when FB script loads. So if you want to manually show this component again, you should call FB.XFBML.parse();

##Result reactfblike

##Props You can use all props that facebook supports. But be careful! You should use camelCase. And attribute ref is changed to reference because it is a reserved word in React. Official Documentation

###Required props

  • language(such as en_US, ko_KR, fr_FR) supported language
  • appId
  • version: version of facebook-jssdk, default: 'v2.12'

###Other props

  • action
  • colorscheme
  • href
  • kidDirectedSite
  • layout
  • reference(which is a ref attribute in facebook)
  • share
  • showFaces
  • width

Demo

Live Demo

Wanna Contribute?

Please contribute to this package via Pull Request, or you can open Issues!

License

MIT

0.5.2

2 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago