来源:https://stackoverflow.com/questions/57476683/setinterval-is-not-showing-updated-state 标签 javascript reactjs setinterval react-hooks