Created
July 29, 2018 15:50
-
-
Save gagangoku/09a4b04e04a7addfa2c2082d1457df69 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
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