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> |
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
import React, { Fragment } from 'react' | |
import { withStyles } from '@material-ui/core/styles' | |
import fetchJsonp from 'fetch-jsonp' | |
import TextField from '@material-ui/core/TextField' | |
import Select from '@material-ui/core/Select' | |
import FormControl from '@material-ui/core/FormControl' | |
import InputLabel from '@material-ui/core/InputLabel' | |
import MenuItem from '@material-ui/core/MenuItem' | |
import Button from '@material-ui/core/Button' |