stream-react-components
v0.0.25
Published
React component library for GetStream.io
Downloads
9
Readme
Stream React Components
Docs and tutorials are located at https://stream.gitbook.io/stream-react-components/
Stream React Components provide a couple of features out of the box:
- Retrieval of feeds, client-side - no server-side integration needed (besides initial token generation)
- Completely customizable activity components and render methods
- Automatic pagination for long feeds
- Realtime websocket connections to Stream for newly added activities
- Clean, minimalistic styling (that's also completely customizable and removable)
import React from 'react';
import ReactDOM from 'react-dom';
import StreamReactComponents from 'stream-react-components';
let {Feed} = StreamReactComponents(yourStreamAppKey, yourStreamAppID);
ReactDOM.render(
<Feed feedToken={someFeedTokenYouGotAsynchronously} feedSlug={"profile"} feedID={1234}/>,
document.getElementById('app')
);
To get started, check out the step-by-step tutorial located at https://stream.gitbook.io/stream-react-components/step-by-step-setup.