mirror of
https://github.com/withastro/astro.git
synced 2025-02-24 22:46:02 -05:00
Fix react example type
This commit is contained in:
parent
2f7cd47383
commit
4e31dc9d6a
1 changed files with 2 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
|||
import { useState } from 'react';
|
||||
import { useState, type ReactNode } from 'react';
|
||||
import './Counter.css';
|
||||
|
||||
export default function Counter({
|
||||
children,
|
||||
count: initialCount,
|
||||
}: {
|
||||
children: JSX.Element;
|
||||
children: ReactNode;
|
||||
count: number;
|
||||
}) {
|
||||
const [count, setCount] = useState(initialCount);
|
||||
|
|
Loading…
Add table
Reference in a new issue