-
-
Save SaraVieira/8c4d11c08f72cf6903fff07aa93b46b1 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 Wrapper extends React.Component { | |
constructor(props) { | |
super(props) | |
this.state = { image: '' } | |
} | |
render() { | |
return React.createElement( | |
'div', | |
{ className: 'wrapper' }, | |
React.createElement(Img, { source: this.state.image }), | |
React.createElement(Button, { getImage: this.getImage }) | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment