thau-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

thau-react

React wrapper around Thau API

Installation

npm install thau-js thau-react

or

yarn add thau-js thau-react

Usage

Wrap your application with ThauProvider:

import { ThauProvider } from 'react-thau'

export default function App() {
  <ThauProvider thauUrl="http://localhost:9000/api/v1">
    ...
  </ThauProvider>
}

And now down in the tree you can use any of the available exported hooks (see documentation for more details about each of the hooks):

  • useThau()
  • useCreateUserWithPassword()
  • useSession()
  • useOpenSessions()
  • useUserProviders()
  • useLoginWithFacebook()
  • useLoginWithGoogle()
  • useLoginWithGithub()
  • useLoginWithTwitter()
  • useLoginWithLinkedIn()
  • useLoginWithPassword()
  • useLogout()

Readme

Keywords

none

Package Sidebar

Install

npm i thau-react

Weekly Downloads

0

Version

0.1.9

License

MIT

Unpacked Size

123 kB

Total Files

22

Last publish

Collaborators

  • mgrin