Counter.tsx

type CounterProps = {
    text: number;
};

function Counter({ text }: CounterProps) {
    return <p>Nilai Counter : {text}</p>
}

export function CounterProfile() {
    return (
        <>
            <h2>Click button to increase</h2>
            <hr />
        </>
    );
}

export default Counter;

Last updated