5 lines
133 B
TypeScript
5 lines
133 B
TypeScript
export default function Counter(props: { text?: string }) {
|
|
const text = props.text ?? "check output";
|
|
return <h1>{text}</h1>;
|
|
}
|