fb-continue-as-button-react

1.0.4 • Public • Published

facebook-continueAs-react

Usage:

import FBbutton from 'facebook-continueAs-react';
FBbutton = FBbutton('YOUR_API_KEY');

  const style = {
    position: 'absolute',
    bottom: '20px',
    left: 'calc(50% - 132px)'
  };

 // In your render function

 <FBbutton style={style} href='/oauth/facebook' preventDefault={true}>

Props:

  • style (optional): Style object to apply to the element
  • href (optional): String where you want the user to be redirected
  • onClick (optional): Function to execute on click
  • preventDefault (optional): Boolean, true to not trigger the default event of the fb button

Readme

Keywords

none

Package Sidebar

Install

npm i fb-continue-as-button-react

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

3.98 kB

Total Files

3

Last publish

Collaborators

  • sakex