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