Open fdorantesm opened 5 years ago
@fdorantesm make sure you import:
import FacebookLogin from 'react-facebook-login/dist/facebook-login-render-props';
@marius4896 you saved me a lot of time. thanks
It doesn't work for me. It doesn't compile and the error is "Unexpected token" and it points to the arraow =>
@fdorantesm make sure you import:
import FacebookLogin from 'react-facebook-login/dist/facebook-login-render-props';
This doesn't work with TypeScript. Tried declaring types file for react-facebook-login/dist/facebook-login-render-props
but that didn't work either.
I know its a bit old question. But I am adding this reply so that it will help others who are having the issue:
After creating a folder "react-facebook-login/dist/facebook-login-render-props.d.ts", add following line of code:
declare module 'react-facebook-login/dist/facebook-login-render-props'
It will be better if just render a single button with event handler.