Skip to content

Commit 2dd29c0

Browse files
authored
Update 07-typing-onclick-handlers.problem.tsx onChange to OnClick Button element
1 parent 296d7ba commit 2dd29c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/02-components/07-typing-onclick-handlers.problem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ interface ButtonProps {
55
children: React.ReactNode;
66
}
77

8-
export const Button = ({ children, className, onChange }: ButtonProps) => {
8+
export const Button = ({ children, className, onClick }: ButtonProps) => {
99
return (
10-
<button onChange={onChange} className={className}>
10+
<button onClick={onClick} className={className}>
1111
{children}
1212
</button>
1313
);

0 commit comments

Comments
 (0)