Last active
June 12, 2020 06:55
-
-
Save dinotrnka/f805c84875add67e29792e2ad99bb7c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Password extends Field { | |
const { item } = this.props; | |
render() { | |
... | |
} | |
} | |
class PasswordFactory { | |
get type() { return 'password'; } | |
create({ item }) { | |
return <Password item={item} />; | |
} | |
} | |
export default PasswordFactory; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment