Skip to main content

Comments Feed Object

The Comments Feed Object component renders a list of comment items. The comments are shown in an orderly manner: few items are full shown while the others can be loaded afterwards by clicking on the "see more comments" button.

Usage

 import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {CommentsFeedObject} 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}><CommentsFeedObject /></SCContextProvider>
);
}