Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  <FormControl fullWidth style={fStyles.form} >
  2.      <InputLabel htmlFor="id-merk">ID Merk</InputLabel>
  3.        <Selected
  4.          value={this.state.isBrand}
  5.          onChange={e => this.setState({isBrand: e.target.value})}
  6.        >
  7.         {brand.map((x,y) =>
  8.           <MenuItem value={x.id_brand} key={y}> {x.brand_name}
  9.           //{e => this.seState({named: e.target.x.brand_name})} //cara mengambil x.brand gimana ya? mau tak jadikan state
  10.           </MenuItem>)}
  11.        </Selected>
  12.    </FormControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement