Why doesn't the state change on first click?
const [building, setBuilding] = useState(0);
<Button
title="tester"
onPress={() => {
setBuilding(1);
console.log(Building);
}}/>
The console log always returns "0" on first click, instead of expected "1". How do I fix this?