A social login button example using ReactJS.
This repo uses an OAuth provider called OAuth.io which provides 100+ OAuth providers such as Twitter, Facebook, Google, and a lot more. They have SDKs available as well for JavaScript, NodeJS, PHP, iOS, Android, as per their documentation.
$ git clone https://github.com/mlsaito/oauth-react
// Install yarn package manager if you don't have it yet
$ yarn start
Check how-to here: https://coderwall.com/p/wtub1q/social-login-button-for-oauth-using-reactjs