import * as React from 'react'; import FormControl from '@mui/joy/FormControl'; import FormLabel from '@mui/joy/FormLabel'; import Autocomplete from '@mui/joy/Autocomplete'; import Typography from '@mui/joy/Typography'; const options = ['Option 1', 'Option 2']; export default function ControllableStates() { const [value, setValue] = React.useState(options[0]); const [inputValue, setInputValue] = React.useState(''); return (
value:
{`${value !== null ? `'${value}'` : 'null'}`}
inputValue:
{`'${inputValue}'`}