We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 134e64b commit cae9a53Copy full SHA for cae9a53
src/components/Button.tsx
@@ -17,7 +17,7 @@ interface IButtonProps {
17
}
18
19
export default class Button extends React.Component<IButtonProps> {
20
- onClick() {
+ onClick = () => {
21
if (!this.props.disabled && this.props.onClick) {
22
this.props.onClick();
23
0 commit comments