There's a way to update your React state more efficiently using the prevState with a callback in setState function. const [name, setName] = useState(''); const [address, setAddress] = useState(''); const [phone, setPhone] = useState(''); // we have ...

Markdown supported · ⌘↵ to post
No responses yet.