summaryrefslogtreecommitdiff
path: root/examples/integrations-playground/src/components/SolidCounter.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/integrations-playground/src/components/SolidCounter.jsx')
-rw-r--r--examples/integrations-playground/src/components/SolidCounter.jsx18
1 files changed, 0 insertions, 18 deletions
diff --git a/examples/integrations-playground/src/components/SolidCounter.jsx b/examples/integrations-playground/src/components/SolidCounter.jsx
deleted file mode 100644
index 4453b881c..000000000
--- a/examples/integrations-playground/src/components/SolidCounter.jsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import { createSignal } from 'solid-js';
-
-export default function Counter(props) {
- const [count, setCount] = createSignal(0);
- const add = () => setCount(count() + 1);
- const subtract = () => setCount(count() - 1);
-
- return (
- <>
- <div class="counter">
- <button onClick={subtract}>-</button>
- <pre>{count()}</pre>
- <button onClick={add}>+</button>
- </div>
- <div class="counter-message">{props.children}</div>
- </>
- );
-}