https://github.com/remorses/firebase-react-components
https://github.com/remorses/firebase-react-components
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/remorses/firebase-react-components
- Owner: remorses
- Created: 2019-12-21T12:25:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-14T17:52:30.000Z (almost 5 years ago)
- Last Synced: 2025-03-04T18:40:46.526Z (10 months ago)
- Language: TypeScript
- Size: 854 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# firebase button components

## 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)}
)
}
```