diff --git a/src/index.js b/src/index.js index 952785c..5145f34 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ import React, { useEffect, useRef } from 'react' function DangerouslySetHtmlContent(props) { - const { html } = props + const { html, ...rest } = props const divRef = useRef(null) useEffect(() => { @@ -12,7 +12,7 @@ function DangerouslySetHtmlContent(props) { return ( -
+ ) }