Skip to content

Commit 90b9ace

Browse files
committed
fix: JSX namespace removed from TS
1 parent c1d4466 commit 90b9ace

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/nextjs/app/Counter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface CounterProps {
66
synced?: boolean;
77
}
88

9-
export default function Counter({ synced = false }: CounterProps): JSX.Element {
9+
export default function Counter({ synced = false }: CounterProps) {
1010
const [count, setCount] = useMyStore(state =>
1111
synced ? [state.count, state.setCount] : [state._count, state.set_Count],
1212
);

examples/nextjs/app/OpenNewTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use client";
2-
export default function OpenNewTab(): JSX.Element {
2+
export default function OpenNewTab() {
33
return (
44
<button
55
className="btn btn-outline mt-4"

examples/nextjs/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "./globals.css";
22

3-
export default function RootLayout({ children }: { children: React.ReactNode }): JSX.Element {
3+
export default function RootLayout({ children }: { children: React.ReactNode }) {
44
return (
55
<html lang="en">
66
<body>{children}</body>

examples/nextjs/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Counter from "./Counter";
22
import OpenNewTab from "./OpenNewTab";
33
import styles from "./page.module.css";
44

5-
export default function Page(): JSX.Element {
5+
export default function Page() {
66
return (
77
<div className={styles.container}>
88
<header>

examples/nextjs/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)