Html component update
This commit is contained in:
1 parent
f874de73b9
commit
6a86de6c84
6 files changed
+12
-11
No files matched your search
@@ -1,7 +0,0 @@
|
||||
import React from 'react'
|
||||
|
||||
export default function Html(props) {
|
||||
return (
|
||||
<div dangerouslySetInnerHTML={{ __html: props.html }} />
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export type HtmlProps = {
|
||||
html: string
|
||||
}
|
||||
|
||||
export const Html: React.FC<HtmlProps> = props => (
|
||||
<div dangerouslySetInnerHTML={{ __html: props.html }} />
|
||||
)
|
||||
Reference in new issue
Block a user