0.6.8 • Published 6 years ago
react-dibs v0.6.8
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 withstate.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
6 years ago
0.6.7
6 years ago
0.6.6
6 years ago
0.6.5
6 years ago
0.6.4
6 years ago
0.6.3
6 years ago
0.6.2
6 years ago
0.6.1
6 years ago
0.6.0
6 years ago
0.5.10
6 years ago
0.5.9
6 years ago
0.5.8
6 years ago
0.5.7
6 years ago
0.5.6
6 years ago
0.5.5
6 years ago
0.5.4
6 years ago
0.5.3
6 years ago
0.5.2
6 years ago
0.5.1
6 years ago
0.5.0
6 years ago
0.4.0
6 years ago
0.3.0
6 years ago
0.2.0
6 years ago
0.1.0
6 years ago
1.0.0
6 years ago