Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add decorator on a class with argument test
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 7, 2021
1 parent da17a13 commit ade78a3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { autoBindMethodsForReact } from "class-autobind-decorator";

@autoBindMethodsForReact(AUTOBIND_CFG)
class PasswordEditor extends React.PureComponent<Props, State> {
constructor(props: Props) {
super(props);
this.state = {
showPassword: false
};
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { autoBindMethodsForReact } from "class-autobind-decorator";

@autoBindMethodsForReact(AUTOBIND_CFG)
class PasswordEditor extends React.PureComponent<Props, State> {
constructor(props: Props) {
super(props);
this.state = {
showPassword: false
};
}

}

0 comments on commit ade78a3

Please sign in to comment.