File size: 790 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Query Comment

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

## Usage

```js
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.        |