From 519a1c4e8407c7abcb8d879b67a9f4b960652cae Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 11 Aug 2023 10:05:02 -0400 Subject: JSX refactor (#7924) * JSX refactor * Get preact/compat test to pass * Use include config * Remove old astro flavored markdown test * Move babel dep to preact * Remove errant debugger * Update lockfile * Update the multi-framework example * Update e2e tests * Fix nested-in-vue tests * Add back in astro check * Update packages/astro/src/core/create-vite.ts Co-authored-by: Nate Moore * Update packages/astro/src/core/create-vite.ts Co-authored-by: Nate Moore * Update packages/integrations/solid/src/index.ts Co-authored-by: Nate Moore * Update packages/integrations/solid/src/index.ts Co-authored-by: Nate Moore * Update .changeset/perfect-horses-tell.md Co-authored-by: Nate Moore * Move the comment about the include config * Remove redundant alias config * Use react's own preamble code * Use the base for the preamble * Remove solid redundancy * Update .changeset/perfect-horses-tell.md Co-authored-by: Sarah Rainsberger * Update based on review comments * Oops --------- Co-authored-by: Fred K. Schott Co-authored-by: Nate Moore Co-authored-by: Sarah Rainsberger --- .../src/components/PreactCounter.tsx | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 examples/framework-multiple/src/components/PreactCounter.tsx (limited to 'examples/framework-multiple/src/components/PreactCounter.tsx') diff --git a/examples/framework-multiple/src/components/PreactCounter.tsx b/examples/framework-multiple/src/components/PreactCounter.tsx deleted file mode 100644 index 2fb0a54b9..000000000 --- a/examples/framework-multiple/src/components/PreactCounter.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** @jsxImportSource preact */ - -import { useState } from 'preact/hooks'; - -/** A counter written with Preact */ -export function PreactCounter({ children }) { - const [count, setCount] = useState(0); - const add = () => setCount((i) => i + 1); - const subtract = () => setCount((i) => i - 1); - - return ( - <> -
- -
{count}
- -
-
{children}
- - ); -} -- cgit v1.2.3