An open API service indexing awesome lists of open source software.

https://github.com/remorses/firebase-react-components


https://github.com/remorses/firebase-react-components

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# firebase button components

![](.github/screen.png)

## Usage

```
yarn add firebase-react-components
```

```tsx
import { GoogleButton, GithubButton, useAuthData } from 'firebase-react-components'
import React from 'react'
import firebase from 'firebase'

const App = () => {
if (!firebase.apps.length) {
firebase.initializeApp(firebaseConfig)
}
return (


{

console.log(creds.toJSON())
}}
onError={(e) => alert(e.message)}
>





)
}

const DisplayUser = () => {
const { user={}, loading } = useAuthData()
if (loading) {
return <>loading...>
}
return (

{JSON.stringify(user, null, 4)}

)
}
```