From 8666f22a0f845973de28cddd358861f65981f168 Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 12 May 2022 16:06:40 +0000 Subject: [PATCH] [ci] format --- packages/integrations/react/client-v17.js | 8 +++----- packages/integrations/react/client.js | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/integrations/react/client-v17.js b/packages/integrations/react/client-v17.js index 32ba87558..1dce34709 100644 --- a/packages/integrations/react/client-v17.js +++ b/packages/integrations/react/client-v17.js @@ -2,14 +2,12 @@ import { createElement } from 'react'; import { render, hydrate } from 'react-dom'; import StaticHtml from './static-html.js'; -export default (element) => (Component, props, children, { client }) => - { +export default (element) => + (Component, props, children, { client }) => { const componentEl = createElement( Component, props, - children != null - ? createElement(StaticHtml, { value: children }) - : children + children != null ? createElement(StaticHtml, { value: children }) : children ); if (client === 'only') { return render(componentEl, element); diff --git a/packages/integrations/react/client.js b/packages/integrations/react/client.js index 0579f4a08..fc952522b 100644 --- a/packages/integrations/react/client.js +++ b/packages/integrations/react/client.js @@ -2,14 +2,12 @@ import { createElement } from 'react'; import { createRoot, hydrateRoot } from 'react-dom/client'; import StaticHtml from './static-html.js'; -export default (element) => (Component, props, children, { client }) => - { +export default (element) => + (Component, props, children, { client }) => { const componentEl = createElement( Component, props, - children != null - ? createElement(StaticHtml, { value: children }) - : children + children != null ? createElement(StaticHtml, { value: children }) : children ); if (client === 'only') { return createRoot(element).render(componentEl);