来源:https://stackoverflow.com/questions/53262646/declaring-react-state-in-constructor-versus-out-of-constructor 标签 reactjs components state