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