Skip to content

Instantly share code, notes, and snippets.

@SaraVieira SaraVieira/block8.js Secret
Last active Jul 6, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.