I'm making input component in typescript for my mobile app. I'm trying to handle change of the text in text input with useState hook, so I created this:const [password, setPassword] = useState('');
now I have a input component:<TextInput value={password} onChangeText={(e) => setPassword(e.target.value)} />
, and I get an error which says: "property 'target' does not exist on type 'string"
↧
TypeScript React Native property 'target' does not exist on type 'string'
↧