Last active
June 12, 2020 07:12
-
-
Save dinotrnka/2c35230013732949e47c0a9c071733e0 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 Username extends Field { | |
const { item } = this.props; | |
render() { | |
... | |
} | |
} | |
class UsernameFactory { | |
get type() { return 'username'; } | |
create({ item }) { | |
return <Username item={item} />; | |
} | |
} | |
export default UsernameFactory; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment