summaryrefslogtreecommitdiff
path: root/examples/remote-markdown/src/components/Yell.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/remote-markdown/src/components/Yell.jsx')
-rw-r--r--examples/remote-markdown/src/components/Yell.jsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/remote-markdown/src/components/Yell.jsx b/examples/remote-markdown/src/components/Yell.jsx
new file mode 100644
index 000000000..ae7d0d959
--- /dev/null
+++ b/examples/remote-markdown/src/components/Yell.jsx
@@ -0,0 +1,5 @@
+import { h, Fragment } from 'preact';
+
+export default function Yell({ children }) {
+ return children.filter(v => typeof v === 'string').join('').toUpperCase() + '!'
+}