I have a react component that uses several states which are initialized in the same way useState(false), is there a way to combine all these states into a single useState(false)
const [loading, setLoading] = useState(false);
const [fields, setFields] = useState(false);
const [wrongImageType, setWrongImageType] = useState(false);
const [aboutError, setAboutError] = useState(false);
const [destinationError, setDestinationError] = useState(false)