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
		
	
| 
											8 years ago
										 | Rendering a real `Whisper.MessageView` using `<util.ConversationContext />` and | ||
| 
											8 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, | ||
|  | }; | ||
| 
											8 years ago
										 | <util.ConversationContext theme={util.theme}> | ||
| 
											8 years ago
										 |   <util.BackboneWrapper | ||
|  |     View={View} | ||
|  |     options={options} | ||
|  |   /> | ||
| 
											8 years ago
										 | </util.ConversationContext> | ||
| 
											8 years ago
										 | ``` |