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.
21 lines
430 B
Markdown
21 lines
430 B
Markdown
7 years ago
|
Rendering a real `Whisper.MessageView` using `<util.ConversationContext />` and
|
||
7 years ago
|
`<util.BackboneWrapper />`.
|
||
|
|
||
|
```jsx
|
||
|
const model = new Whisper.Message({
|
||
|
type: 'outgoing',
|
||
|
body: 'text',
|
||
|
sent_at: Date.now() - 5000,
|
||
|
})
|
||
|
const View = Whisper.MessageView;
|
||
|
const options = {
|
||
|
model,
|
||
|
};
|
||
7 years ago
|
<util.ConversationContext theme={util.theme}>
|
||
7 years ago
|
<util.BackboneWrapper
|
||
|
View={View}
|
||
|
options={options}
|
||
|
/>
|
||
7 years ago
|
</util.ConversationContext>
|
||
7 years ago
|
```
|