Controlled TextInput
Understand how value and onChangeText together create a controlled input.
Codejavascript
import React, { useState } from 'react';
import { TextInput } from 'react-native';
export default function Field() {
const [text, setText] = useState('');
return (
<TextInput value={text} />
);
}What is the bug in this code?