Home Reference Source
import {CommentGroup} from 'peter-test/app/components/CommentGroup.jsx'
public class | source

CommentGroup

Extends:

react~Component → CommentGroup

Constructor Summary

Public Constructor
public

Component constructor

Member Summary

Public Members
public
public

commentList: DOM: *

Get comments' DOM

public

handleOnChange(evt: event, data: string): *

When comment text changed

public
public

state: {"commentText": *, "postDisable": boolean}

Method Summary

Public Methods
public

render(): react element

Reneder component DOM

Public Constructors

public constructor(props: object) source

Component constructor

Params:

NameTypeAttributeDescription
props object

is an object properties of component

Public Members

public clearCommentWrite: * source

public commentList: DOM: * source

Get comments' DOM

Return:

DOM

list of comments' DOM

public handleOnChange(evt: event, data: string): * source

When comment text changed

public handlePostComment: * source

public state: {"commentText": *, "postDisable": boolean} source

Public Methods

public render(): react element source

Reneder component DOM

Return:

react element

return the DOM which rendered by component