MSalmanTariq / react-google-one-tap-login

React wrapper for google one tap login
Other
31 stars 16 forks source link

Readme.md has an error #23

Open soubhik-111 opened 1 year ago

soubhik-111 commented 1 year ago

Need to update Readme.md

There is a syntax error on line number 41 onError and onSuccess.

  1. Bracket is missing in case of component props onError and onSuccess.
  2. I have changed the single-line comment format to a multi-line comment so, If someone copy paste It will not show an error.
Sbrjt commented 3 months ago

For copying (until the PR is merged):

<GoogleOneTapLogin
    onError={error => console.log(error)}
    onSuccess={response => console.log(response)}
    googleAccountConfigs={{
        client_id: 'replace-with-your-client-id'
    }}
/>