I am working with a TextField
component that has a specific defaultValue
set. Here is the code snippet:
<TextField
autoFocus={props.autoFocus}
fullWidth
defaultValue={props.defaultValue}
value={text}
onKeyPress={handleKeyPress}
onFocus={(e) => e.target.select()}
onChange={handleChange}
/>
Some parts of the default value are enclosed in parentheses, and I want to make these parts bold while keeping the rest as it is. Does anyone know how I can achieve this?