Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified

Query Comment

<QueryComment> requests a single comment to be loaded into Calypso.

Usage

import QueryComment from 'calypso/components/query-comment';

const CommentDetail = ( { comment, commentId, siteId } ) => (
    <div>
        <QueryComment commentId={ commentId } siteId={ siteId } />
        <div>{ comment.date }</div>
        <div>{ comment.content }</div>
    </div>
);

Props

Name Type Description
commentId Number The comment to request.
siteId Number The site ID for which the comment should be queried.
forceWpcom Bool (default: false) Forces the request to wpcom.