State variables might look like regular JavaScript variables that you can read and write to. However, state behaves more like a snapshot. Setting it does not change the state variable you already have, but instead triggers a re-render.
欢 迎 下 载 我 开 发 的 各 端 软 件 和 APP