Skip to content

Instantly share code, notes, and snippets.

@gagangoku
Created July 29, 2018 15:50
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 gagangoku/09a4b04e04a7addfa2c2082d1457df69 to your computer and use it in GitHub Desktop.
Save gagangoku/09a4b04e04a7addfa2c2082d1457df69 to your computer and use it in GitHub Desktop.
render() {
const { classes } = this.props
if (this.state.numCalls != 2) {
return (<div>Loading</div>) // Html
}
return (
<Fragment>
<Paper className={classes.root}>
<div>Details for id {(new URL(document.location)).searchParams.get('id')}</div>
<DescriptorWidget descriptor={this.state.descriptor} message={this.state.message} submitFn={this.submitFn} resetFn={this.resetFn} />
</Paper>
</Fragment>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment