Skip to content

Instantly share code, notes, and snippets.

View gagangoku's full-sized avatar

Gagandeep Singh gagangoku

View GitHub Profile
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>
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'