You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
422 B
Markdown
18 lines
422 B
Markdown
Rendering a real `Whisper.MessageView` using `<util.ConversationContext />` and
|
|
`<util.BackboneWrapper />`.
|
|
|
|
```jsx
|
|
const model = new Whisper.Message({
|
|
type: 'outgoing',
|
|
body: 'text',
|
|
sent_at: Date.now() - 5000,
|
|
});
|
|
const View = Whisper.MessageView;
|
|
const options = {
|
|
model,
|
|
};
|
|
<util.ConversationContext theme={util.theme}>
|
|
<util.BackboneWrapper View={View} options={options} />
|
|
</util.ConversationContext>;
|
|
```
|