for useState(), see:
https://www.freecodecamp.org/news/usestate-vs-redux-state-management/
for useEffect(), see:
https://www.freecodecamp.org/news/react-useeffect-absolute-beginners/
简单说就是:当前component之行完毕后会之行useEffect定义的第一个参数的函数,当dependency参数改变的时候也会重新之行useEffect的第一个函数
标签:www,之行,react,see,useState,useEffect From: https://www.cnblogs.com/saaspeter/p/17751837.html