我有一个父react组件,它动态地生成自定义子元素的数组。父级的生命周期方法被正确触发。它的子元素生命周期方法不会被调用。我的问题是:为什么?父级: export default class Parent extends React.Component<IParentProps, IParentState> {
public children: A
componentWillMount of withErrorHandler中的代码按预期工作,但由于它是一个简化的方法,所以我必须将它移到某个地方。Location - Constructor拦截器将拦截错误,但是withError处理程序中的模式不会显示给用户。 return class extend