How to use just 1 useState() for serveral states
Solution 1:
You can do like this
const [states, setStates] = useState({ loading:false, fields:false, wrongImageType:false, aboutError:false, destinationError:false })
Update state like this
setStates((prevState) => ({ ...prevState, loading: true }))