0.0.27 • Published 6 years ago
feather-client-react v0.0.27
feather-client-react
This library provides a fully-featured authentication form (sign-in, sign-up, and password-resets) as a single React component. Under the hood, this library wraps the feather-client-js library. If you like to build your own custom authentication forms, please checkout that library as well.
Have any questions? We're hanging out on Discord 👋
Install
$ npm install feather-client-react --save
# or
$ yarn add feather-client-reactUsage
import React from 'react'
import {
Feather,
AuthenticationForm,
withCurrentUser
} from 'feather-client-react'
function App() {
return (
<Feather apiKey='pk_live_...'>
<Home />
</Feather>
)
}
const Home = withCurrentUser((props) => {
if (!props.currentUser) return <AuthenticationForm />
else return <p>Current user: {props.currentUser.email}</p>
})
export default App0.0.27
6 years ago
0.0.26
6 years ago
0.0.24
6 years ago
0.0.25
6 years ago
0.0.23
6 years ago
0.0.20
6 years ago
0.0.21
6 years ago
0.0.22
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.15
6 years ago
0.0.16
6 years ago
0.0.13
6 years ago
0.0.14
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.5
6 years ago
0.0.6
6 years ago
0.0.4
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago