How can create the valuable in react native functional component and it doesn't trigger a re-render when update it?
in this case, it will trigger render again when I call updateNumber(), so how can create the valuable that it is for saving data only? function test() { const [cartNum, setCartNum] = useState(0); function updateNumber() { setCartNum(number +1); } return…