diff --git a/examples/preact/package.json b/examples/preact/package.json index 37ab623..cd50425 100644 --- a/examples/preact/package.json +++ b/examples/preact/package.json @@ -17,4 +17,4 @@ "preact": "^10.18.1" }, "version": "0.7.2" -} \ No newline at end of file +} diff --git a/examples/preact/src/App.tsx b/examples/preact/src/App.tsx index 4342893..6fb9aa8 100644 --- a/examples/preact/src/App.tsx +++ b/examples/preact/src/App.tsx @@ -15,26 +15,24 @@ interface TodoListItemProps { function TodoListItem({ item, setList }: TodoListItemProps): JSX.Element { return ( -
-
- {item.message} -
+
+
{item.message}
@@ -99,13 +101,11 @@ function TodoList(): JSX.Element { const [index, setIndex] = useState(0); return ( <> - +
- {list.map((item) => )} + {list.map(item => ( + + ))}
); diff --git a/examples/preact/vite.config.js b/examples/preact/vite.config.js index 9e0c1e9..a7b479f 100644 --- a/examples/preact/vite.config.js +++ b/examples/preact/vite.config.js @@ -1,5 +1,5 @@ -import { defineConfig } from 'vite' -import preact from "@preact/preset-vite"; +import { defineConfig } from 'vite'; +import preact from '@preact/preset-vite'; import forgettiPlugin from 'vite-plugin-forgetti'; export default defineConfig({ @@ -13,6 +13,6 @@ export default defineConfig({ include: 'src/**/*.{ts,js,tsx,jsx}', exclude: 'node_modules/**/*.{ts,js,tsx,jsx}', }, - }) + }), ], }); diff --git a/examples/react/package.json b/examples/react/package.json index 9d53dbf..539e699 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -20,4 +20,4 @@ "react-dom": "^18.2.0" }, "version": "0.7.2" -} \ No newline at end of file +} diff --git a/examples/react/src/App.tsx b/examples/react/src/App.tsx index 45906c1..b29f782 100644 --- a/examples/react/src/App.tsx +++ b/examples/react/src/App.tsx @@ -1,3 +1,4 @@ +import type { JSX } from 'react'; import { useState } from 'react'; import './main.css'; @@ -14,26 +15,24 @@ interface TodoListItemProps { function TodoListItem({ item, setList }: TodoListItemProps): JSX.Element { return ( -
-
- {item.message} -
+
+
{item.message}
@@ -98,13 +101,11 @@ function TodoList(): JSX.Element { const [index, setIndex] = useState(0); return ( <> - +
- {list.map((item) => )} + {list.map(item => ( + + ))}
);