connect()函数或其他状态管理库的类似方法连接到状态存储(state store),当存储中的状态变更时,与组件相连的状态(props)确实会自动更新,从而触发组件的重新渲染。
connect()
接收 Redux state 中 aihelper 的所有属性作为 props export default connect((state: StoreStates) => { return { ...state.aihelper }; })(IdentifySubject);