← React Beginner Questions - Set 8 Q73

What is the use of useState in React?

React Beginner Questions - Set 8

Example

const [email, setEmail] = useState('');
<input value={email} onChange={e => setEmail(e.target.value)} />;

What to notice

← Back to the question list