0.6.8 • Published 7 years ago

react-dibs v0.6.8

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

react-dibs

I call Dibs!

react-dibs is the client component for Dibs

API

PropTypes

react-dibs exposes a render props component that needs the following props:

  • server: string the address of the dibs server (there is one currently live on staging, https://dibs.test.tvlk.cloud)
  • username: string for tools with auth0, you can fill this with state.oidc.token.userEmail

Render props

And it will provides a render props which consists of:

  • pageVisitorList: array list of users that currently opening the same page as you, sorted by the first one to visit . For further explanation, please check Dibs's documentation

Getting started

  • Install
  yarn add react-dibs
  • Import
  import CallDibs from 'react-dibs';

  ...

  render() {
    return (
      <CallDibs
        server={serverAddress}
        username={userEmail}
      >
        {info => console.log(info)} // { pageVisitorList: [] }
      </CallDibs>
    );
  }
0.6.8

7 years ago

0.6.7

7 years ago

0.6.6

7 years ago

0.6.5

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.10

7 years ago

0.5.9

7 years ago

0.5.8

7 years ago

0.5.7

7 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

1.0.0

7 years ago