Would you please explain this to me why it's sending relay1
state with false? Why handleControlRelay1
doesn't change the state
I'm doing it wrong by putting this inside a function? setRelay1((prevValue) => !prevValue);
// ...
const [relaysData, setRelaysData] = useState([]);
console.log("