UNPKG
pubnub-react
Version:
beta (2.0.0-beta.4)
latest (3.0.2)
rc (2.0.0-rc.0)
3.0.2
3.0.1
3.0.0
2.1.1
2.1.0
2.0.0
2.0.0-rc.0
2.0.0-beta.4
2.0.0-beta.3
2.0.0-beta.2
2.0.0-beta.1
1.3.2
1.3.1
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
Publish & Subscribe Real-time Messaging with PubNub
github.com/pubnub/react
pubnub/react
pubnub-react
/
dist
/
context
/
PubNubConsumer.d.ts
7 lines
(6 loc)
•
230 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
React
from
'react'
;
import
PubNub
from
'pubnub'
;
export
interface
PubNubConsumerProps
{
children
:
(
client
:
PubNub
) =>
React
.
ReactChild
|
null
; }
export
declare
const
PubNubConsumer
:
React
.
FC
<
PubNubConsumerProps
>;