Сбить типизацию Flashcards

1
Q

Сбиваем тип

A

const [error, setError] = useState<string | null> (null)
<TextField
error={!!error}
/>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly