我有一个handleSubmit,它返回我应该在另一个组件中使用的键(verifyCode)。如何将这个verifyCode传递给另一个组件? dispatch(createAccount(id, username)) .then((response) => {
// I get this value from data.response
我正在尝试使用rootstore来访问我的react项目中的两个不同的存储。RoorStore.ts => import ExtractionStore from ".createContext(new RootStore()); 然而,当我试图将它注入到我的组件中时,我得到了一个错误: 组件tsx => const ExtractionDashboard: React.FC' is not assignable to parameter of type 'Context<unknow