|
Download wp-calypso/client/components/data/query-comment/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 790 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-comment/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/data/query-comment/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-comment/README.md
790 Bytes
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. |