const [count, setCount] = useState(0);
const addNumber = (number) => setCount((prev) => prev + number)
////////////////////////////////////////////////////////////////////
<TouchableOpacity onPress = {()=>{addNumber(1)}}>
</TouchableOpacity>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…