0.0.27 • Published 5 years ago

feather-client-react v0.0.27

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

feather-client-react

NPM JavaScript Style Guide

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-react

Usage

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 App
0.0.27

5 years ago

0.0.26

5 years ago

0.0.24

5 years ago

0.0.25

5 years ago

0.0.23

5 years ago

0.0.20

5 years ago

0.0.21

5 years ago

0.0.22

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.15

5 years ago

0.0.16

5 years ago

0.0.13

5 years ago

0.0.14

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago