I am trying to use Select from Material-ui. I want to set the prevState as default value. I am able to select the value and save it in my table but not able set that state as default.

Please find the code

```js
const [value, setValue] = useState("");

<Dialog
        open={isOpen}
        onClose={handleClose}
        aria-labelledby="form-dialog-title"
        fullWidth
      >
        <DialogTitle id="form-dialog-title">Edit</DialogTitle>
        <DialogContent>
          <FormControl fullWidth>
            <InputLabel shrink id="inputLabel">
              Select severity
            </InputLabel>
            <Select
              labelId="inputLabel"
              id="severity"
              value={value ? value : ""}
              defaultValue={value} //how to set the prevState in here
              onChange={handleChange}
              displayEmpty
              fullWidth
              MenuProps={{
                anchorOrigin: {
                  vertical: "bottom",
                  horizontal: "left",
                },
                transformOrigin: {
                  vertical: "top",
                  horizontal: "left",
                },
                getContentAnchorEl: null,
              }}
            >
              <MenuItem value={"1"}>High</MenuItem>
              <MenuItem value={"2"}>Medium</MenuItem>
              <MenuItem value={"3"}>Low</MenuItem>
            </Select>
          </FormControl>
        </DialogContent>
        <DialogActions>
          <Button onClick={handleClose} variant="contained">
            Cancel
          </Button>
          <Button
            onClick={handleChangeSeverity}
            variant="contained"
            color="secondary"
          >
            OK
          </Button>
        </DialogActions>
        Current Value: {value}
      </Dialog>
```

Please find the picture below. I have already selected Low and saved it. When I open the select again it is showing me the empty field. I want to show my existing menuItems (Low/Medium/High) in the highlighted area!

[![enter image description here](https://i.stack.imgur.com/K6MzD.png)](https://i.stack.imgur.com/K6MzD.png)

Thank you!!