Skip to content

Commit

Permalink
Merge branch 'feat-redux-hooks-13' of https://github.com/compulim/Bot…
Browse files Browse the repository at this point in the history
…Framework-WebChat into feat-redux-hooks-13
  • Loading branch information
compulim committed Nov 29, 2019
2 parents 1603e6c + 59e4fe9 commit a30f9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HOOKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ useRenderActivity(
}) => React.Element
```

This function is for rendering an activity and its attachments inside a React element. Because of the parent-child, the caller will need to pass a render function for attachment to create a render function for activity. When rendering activity, the caller will need to pass `activity` and `timestampClassName`. This function is a composition of `activityRendererMiddleware`, which is passed as a prop.
This function is for rendering an activity and its attachments inside a React element. Because of the parent-child relationship, the caller will need to pass a render function in order for the attachment to create a render function for the activity. When rendering the activity, the caller will need to pass `activity` and `timestampClassName`. This function is a composition of `activityRendererMiddleware`, which is passed as a prop.

## `useRenderAttachment`

Expand Down

0 comments on commit a30f9f2

Please sign in to comment.