From eab4a0279fd28163cea9da2b010c5ccde5645e6f Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Sun, 13 Nov 2022 22:50:15 -0500 Subject: [PATCH] Preserve reactivity in Solid example component (#5386) --- examples/framework-solid/src/components/Counter.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/framework-solid/src/components/Counter.tsx b/examples/framework-solid/src/components/Counter.tsx index 1255fa399..e0c3cba62 100644 --- a/examples/framework-solid/src/components/Counter.tsx +++ b/examples/framework-solid/src/components/Counter.tsx @@ -1,7 +1,7 @@ import { createSignal } from 'solid-js'; import './Counter.css'; -export default function Counter({ children }) { +export default function Counter(props) { const [count, setCount] = createSignal(0); const add = () => setCount(count() + 1); const subtract = () => setCount(count() - 1); @@ -13,7 +13,7 @@ export default function Counter({ children }) {
{count()}
-
{children}
+
{props.children}
); }