fb login npm 1

fb login npm

import React from 'react';
import ReactDOM from 'react-dom';
import FacebookLogin from 'react-facebook-login';
import TiSocialFacebookCircular from 'react-icons/lib/ti/social-facebook-circular';

const responseFacebook = (response) => {  
	}  />, 

Here is what the above code is Doing:
1. We are importing the FacebookLogin component from the react-facebook-login package.
2. We are creating a responseFacebook function that will be called when the user is successfully authenticated.
3. We are rendering the FacebookLogin component.
4. We are passing the appId, autoLoad, fields, callback, cssClass, and icon props to the FacebookLogin component.
5. We are passing the responseFacebook function as the value of the callback prop.
6. We are passing the TiSocialFacebookCircular component as the value of the icon prop.

Similar Posts