diff options
Diffstat (limited to 'examples/framework-multiple/src/components/PreactSFC.tsx')
-rw-r--r-- | examples/framework-multiple/src/components/PreactSFC.tsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/framework-multiple/src/components/PreactSFC.tsx b/examples/framework-multiple/src/components/PreactSFC.tsx new file mode 100644 index 000000000..a92e258f8 --- /dev/null +++ b/examples/framework-multiple/src/components/PreactSFC.tsx @@ -0,0 +1,12 @@ +/** @jsxImportSource preact */ + +/** a counter written in Preact */ +export default function PreactSFC({ children }) { + return ( + <> + <div className="counter"> + Hello from Preact! + </div> + </> + ); +} |