setState doesn't update state variable - React Native hooks

前端 未结 0 1537
谎友^
谎友^ 2020-12-31 03:42

I\'m using the state variable to keep track of my previous state.

The animation works (without index), but when I do

const [index, setIndex] = useState         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题