Skip to main content

Feed

The Feed component renders a feed composed of different feed objects and custom adv banners.

Usage

 import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {FeedObject} from '@selfcommunity/react-ui';

function App() {
const conf = {
portal: '<community-path>',
session: {
type: 'OAuth',
token: '<community-token>',
refreshToken: '<community-refresh-token>',
refreshTokenEndpoint: '<community-refresh-endpoint>',
},
};
return (
<SCContextProvider conf={conf}><FeedObject /></SCContextProvider>
);
}