diff options
author | 2021-05-26 18:31:27 +0000 | |
---|---|---|
committer | 2021-05-26 18:31:27 +0000 | |
commit | 5fa7e354b3e66ea95b2c210f51cc2517897bf8f0 (patch) | |
tree | d8bbe3764e006c147d5198d53ec1d126bde75379 /packages/renderers/react/static-html.js | |
parent | 643c880f280c3f571a022b6f4d40b6d5a0e911b5 (diff) | |
download | astro-5fa7e354b3e66ea95b2c210f51cc2517897bf8f0.tar.gz astro-5fa7e354b3e66ea95b2c210f51cc2517897bf8f0.tar.zst astro-5fa7e354b3e66ea95b2c210f51cc2517897bf8f0.zip |
[ci] yarn format
Diffstat (limited to 'packages/renderers/react/static-html.js')
-rw-r--r-- | packages/renderers/react/static-html.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/renderers/react/static-html.js b/packages/renderers/react/static-html.js index a50068605..1efc625d0 100644 --- a/packages/renderers/react/static-html.js +++ b/packages/renderers/react/static-html.js @@ -9,16 +9,16 @@ import { createElement as h } from 'react'; */ const StaticHtml = ({ value }) => { if (!value) return null; - return h('astro-fragment', { suppressHydrationWarning: true, dangerouslySetInnerHTML: { __html: value }}); -} + return h('astro-fragment', { suppressHydrationWarning: true, dangerouslySetInnerHTML: { __html: value } }); +}; /** - * This tells React to opt-out of re-rendering this subtree, - * In addition to being a performance optimization, - * this also allows other frameworks to attach to `children`. - * - * See https://preactjs.com/guide/v8/external-dom-mutations - */ + * This tells React to opt-out of re-rendering this subtree, + * In addition to being a performance optimization, + * this also allows other frameworks to attach to `children`. + * + * See https://preactjs.com/guide/v8/external-dom-mutations + */ StaticHtml.shouldComponentUpdate = () => false; export default StaticHtml; |