我想将一个状态变量作为道具传递给子组件,但子组件没有收到任何东西。我看到状态变量不会立即更新的地方,所以我移动了我的调用以将两个子组件交换到setState回调函数中。下面是一些代码.. 父组件 //function called by app component to unmount from parent
handleLandingUnmount(enteredCode){
con
由于某些原因,即使我很确定我在过去做过同样的事情,onSubmit()函数也无法设置isLoading的状态。 import * as React from 'react';
import * as Redux from 'redux';
const { connect } = require('react-redux');
import { push } from