I'm working with a TextField in Material UI. I need to restrict the user from deleting the first few words (initialValue) of a TextField. This is to ensure user responses start with specific text which is necessary in this case. Is this possible?
const initialValue = "This taught me"
const [response, setResponse] = useState(initialValue);
<TextField
multiline
minRows={3}
onChange={e => setResponse(e.target.value)}
value={response}
autoFocus={true}
inputRef={textInput}
/>