Classes
Methods
componentDidMount()
As soon as component is loaded, comment, stars data are updated immediately.
doComment(event)
Adds comment for the memory. It immediately updates comment in UI but stars gets updated in db in background asynchronously.
Parameters:
Name | Type | Description |
---|---|---|
event |
Object | Event object |
doReact()
Adds star for the memory. It immediately updates UI but stars gets updated in db in background asynchronously.
doReport()
Prompts user to add reason for report, and sends the details to backend
render()
Renders the card view of memory using props and state of the component.
textInputHandler(event)
Executes at each keystroke of user for any input text field in the component. As soon as it receives any keystroke from user, this method updates the state of the component accordingly.
Parameters:
Name | Type | Description |
---|---|---|
event |
Object | Event object |