Skip to content

Commit 08ae99d

Browse files
committed
fix: update Link component props type to use React.ComponentProps
Addresses editor error `Cannot find namespace 'JSX'.ts(2503)`
1 parent 37cdd23 commit 08ae99d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Link(props: JSX.IntrinsicElements['a']) {
1+
function Link(props: React.ComponentProps<'a'>) {
22
return (
33
<a
44
className="text-yellow-500 underline hover:no-underline dark:text-yellow-400"

0 commit comments

Comments
 (0)