npm.io
1.1.0 • Published 9 years ago

patchkit-msg-content

Licence
GPL-3.0
Version
1.1.0
Deps
7
Vulns
0
Weekly
0

MsgContent

Render the content of a message according to its type

import * as MsgContent from 'patchkit-msg-content'

<MsgContent.Block msg={msg} />
<MsgContent.Inline msg={msg} />

// you can force "raw" data rendering:
<MsgContent.Block msg={msg} forceRaw />
<MsgContent.Inline msg={msg} forceRaw />