Skip to content

Instantly share code, notes, and snippets.

@SaraVieira
Last active July 6, 2018 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SaraVieira/8c4d11c08f72cf6903fff07aa93b46b1 to your computer and use it in GitHub Desktop.
Save SaraVieira/8c4d11c08f72cf6903fff07aa93b46b1 to your computer and use it in GitHub Desktop.
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