DEV Community

Discussion on: Add the new Google Sign In to your React app!

Collapse
 
ashercoren profile image
Asher Coren

Hi @mremanuel
There are some issues with your code snippet:

  1. There are issues with the code syntax (i.e. parentheses and braces closing in the wrong place)
  2. After fixing the syntax issues, clicking on the sign in button doesn't do anything.
Collapse
 
dheerajy profile image
Dheeraj Yalamanchili

making the clickHandler function optional and not specifying a value for it fixes this problem for me.

{
  clickHandler?: Function<{ successful: boolean; error: string }>
}
Enter fullscreen mode Exit fullscreen mode