This is a minimal setup created using create-react-app. I shows you how exactly you can integrate a Google Login in your own React-based app
You need to create a CLIENT_ID
using this link
Here is a demo for how to create CLIENT_ID
Clone the project
git clone <Url of this project>
Get into the folder and install necessary dependencies
cd google-login-with-react
yarn
Start the project
yarn start
Once started, you can access this project at http://localhost:3000