Html component update

This commit is contained in:
tmshv committed 2020-02-15 06:40:47 +03:00
1 parent f874de73b9
commit 6a86de6c84
6 files changed
+12 -11

No files matched your search

-7
View File
@@ -1,7 +0,0 @@
import React from 'react'
export default function Html(props) {
return (
<div dangerouslySetInnerHTML={{ __html: props.html }} />
)
}
+7
View File
@@ -0,0 +1,7 @@
export type HtmlProps = {
html: string
}
export const Html: React.FC<HtmlProps> = props => (
<div dangerouslySetInnerHTML={{ __html: props.html }} />
)