text component updates + performance improved
This commit is contained in:
1 parent
968da68929
commit
df229b5e8c
5 files changed
+11
-26
No files matched your search
@@ -1,13 +0,0 @@
|
||||
import { Html } from 'src/components/Html'
|
||||
import { memo } from 'react'
|
||||
import { typograf, markdownToHtml } from 'src/lib/text'
|
||||
|
||||
export type MarkdownProps = {
|
||||
data: string
|
||||
}
|
||||
|
||||
export const Markdown: React.SFC<MarkdownProps> = memo(props => (
|
||||
<Html
|
||||
html={typograf(markdownToHtml(props.data))}
|
||||
/>
|
||||
))
|
||||
Reference in new issue
Block a user