0.6.8 • Published 7 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: stringthe address of the dibs server (there is one currently live on staging,https://dibs.test.tvlk.cloud)username: stringfor tools with auth0, you can fill this withstate.oidc.token.userEmail
Render props
And it will provides a render props which consists of:
pageVisitorList: arraylist 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
8 years ago
0.6.5
8 years ago
0.6.4
8 years ago
0.6.3
8 years ago
0.6.2
8 years ago
0.6.1
8 years ago
0.6.0
8 years ago
0.5.10
8 years ago
0.5.9
8 years ago
0.5.8
8 years ago
0.5.7
8 years ago
0.5.6
8 years ago
0.5.5
8 years ago
0.5.4
8 years ago
0.5.3
8 years ago
0.5.2
8 years ago
0.5.1
8 years ago
0.5.0
8 years ago
0.4.0
8 years ago
0.3.0
8 years ago
0.2.0
8 years ago
0.1.0
8 years ago
1.0.0
8 years ago