react hooks

react规定我们必须把hooks写在函数的最外层,不能写在ifelse等条件语句当中,来确保hooks的执行顺序一致。

posted @ 2021-02-24 14:47  温柔的小猫  阅读(138)  评论(0)    收藏  举报