1.1.0 • Published 8 years ago

patchkit-msg-content v1.1.0

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
8 years ago

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 />